forked from xuos/xiuos
Build a kernel selector tool in Kconfig/bash/python. Implement a naive recommendation algorithm for it. Automatically generate preferences in YAML. The features described in YAML for each kernel is not stable and is only for demonstration currently. Integrate the tool into the Makefile of XiUOS. Run make kernel_selector in XiUOS directory to verify it
This commit is contained in:
40
Ubiquitous/XiUOS/board/aiit-arm32-board/Kselector
Normal file
40
Ubiquitous/XiUOS/board/aiit-arm32-board/Kselector
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
mainmenu "Ubiquitous Kernel Selector"
|
||||
|
||||
config BSP_DIR
|
||||
string
|
||||
option env="BSP_ROOT"
|
||||
default "."
|
||||
|
||||
config KERNEL_DIR
|
||||
string
|
||||
option env="KERNEL_ROOT"
|
||||
default "../.."
|
||||
|
||||
config UBIQUITOUS_DIR
|
||||
string
|
||||
option env="UBIQUITOUS_ROOT"
|
||||
default "../../.."
|
||||
|
||||
source "$UBIQUITOUS_DIR/Kselector_features"
|
||||
|
||||
source "$UBIQUITOUS_DIR/Kselector_params"
|
||||
|
||||
config MANUALLY_SELECT
|
||||
bool "Manually select a kernel"
|
||||
default n
|
||||
if MANUALLY_SELECT
|
||||
menu "Required Kernel"
|
||||
choice
|
||||
prompt "Select OS Kernel"
|
||||
default SELECT_XIUOS
|
||||
|
||||
config SELECT_RT_THREAD
|
||||
bool "select RT_Thread"
|
||||
config SELECT_NUTTX
|
||||
bool "select Nuttx"
|
||||
config SELECT_XIUOS
|
||||
bool "select XiUOS"
|
||||
endchoice
|
||||
endmenu
|
||||
endif
|
||||
Reference in New Issue
Block a user