[Mod] 添加Kconfig, 03-Bus

This commit is contained in:
gaoyang3513
2024-11-17 20:49:20 +08:00
parent b2473d60d5
commit 9b65834b12
3 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,3 @@
config DRIVER_BUS_PLATFORM_OSDEV
bool "OSAL osdev driver"

13
03-Bus/Kconfig Normal file
View 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
View File

@ -1,9 +1,21 @@
mainmenu "Example Kconfig configuration" mainmenu "Example Kconfig configuration"
config MODULES menu "Modules with the type of bus support"
bool "Enable loadable module support"
option modules config MODULE_BUS
default y 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" menu "Bool and tristate symbols"