[Mod] 添加Kconfig, 03-Bus
This commit is contained in:
3
03-Bus/01-Platform/Kconfig
Normal file
3
03-Bus/01-Platform/Kconfig
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
config DRIVER_BUS_PLATFORM_OSDEV
|
||||
bool "OSAL osdev driver"
|
||||
13
03-Bus/Kconfig
Normal file
13
03-Bus/Kconfig
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
config DRIVER_BUS_PLATFORM
|
||||
bool "Platform device driver"
|
||||
|
||||
if DRIVER_BUS_PLATFORM
|
||||
source "03-Bus/01-Platform/Kconfig"
|
||||
endif # DRIVER_BUS_PLATFORM
|
||||
|
||||
config DRIVER_BUS_I2C
|
||||
bool "I2C device driver"
|
||||
|
||||
config DRIVER_BUS_SPI
|
||||
bool "SPI device driver"
|
||||
20
Kconfig
20
Kconfig
@ -1,9 +1,21 @@
|
||||
mainmenu "Example Kconfig configuration"
|
||||
|
||||
config MODULES
|
||||
bool "Enable loadable module support"
|
||||
option modules
|
||||
default y
|
||||
menu "Modules with the type of bus support"
|
||||
|
||||
config MODULE_BUS
|
||||
bool "Bus device driver"
|
||||
default n
|
||||
|
||||
if MODULE_BUS
|
||||
source "03-Bus/Kconfig"
|
||||
endif # Module_BUS
|
||||
|
||||
endmenu
|
||||
|
||||
#config MODULES
|
||||
# bool "Enable loadable module support"
|
||||
# option modules
|
||||
# default n
|
||||
|
||||
menu "Bool and tristate symbols"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user