diff --git a/03-Bus/01-Platform/Kconfig b/03-Bus/01-Platform/Kconfig new file mode 100644 index 000000000..9d199b0a5 --- /dev/null +++ b/03-Bus/01-Platform/Kconfig @@ -0,0 +1,3 @@ + +config DRIVER_BUS_PLATFORM_OSDEV + bool "OSAL osdev driver" diff --git a/03-Bus/Kconfig b/03-Bus/Kconfig new file mode 100644 index 000000000..696052061 --- /dev/null +++ b/03-Bus/Kconfig @@ -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" diff --git a/Kconfig b/Kconfig index f1cb67bd4..4347e05e2 100644 --- a/Kconfig +++ b/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"