From dcc620e6b8418f81615f7875db56ed443ac642d6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 29 Apr 2020 17:14:04 +0800 Subject: [PATCH] Kconfig: Change !BUILD_PROTECTED && !BUILD_KERNEL to BUILD_FLAT Signed-off-by: Xiang Xiao --- examples/flash_test/Kconfig | 2 +- examples/i2schar/Kconfig | 4 ++-- examples/mtdpart/Kconfig | 2 +- examples/mtdrwb/Kconfig | 2 +- system/composite/Kconfig | 2 +- system/usbmsc/Kconfig | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/flash_test/Kconfig b/examples/flash_test/Kconfig index 98cd42057..8490abea6 100644 --- a/examples/flash_test/Kconfig +++ b/examples/flash_test/Kconfig @@ -6,7 +6,7 @@ config EXAMPLES_FLASH_TEST tristate "SMART FLASH block device test" default n - depends on (!BUILD_PROTECTED && !BUILD_KERNEL) && MTD_SMART + depends on BUILD_FLAT && MTD_SMART ---help--- This logic performs a SMART flash block device test. This test performs a sector allocate, read, write, free and garbage collection diff --git a/examples/i2schar/Kconfig b/examples/i2schar/Kconfig index 00086d2ca..fbfc8857f 100644 --- a/examples/i2schar/Kconfig +++ b/examples/i2schar/Kconfig @@ -77,8 +77,8 @@ config EXAMPLES_I2SCHAR_BUFSIZE config EXAMPLES_I2SCHAR_DEVINIT bool "Architecture-specific device initialization" - default 256 - depends on !BUILD_PROTECTED && !BUILD_KERNEL + default n + depends on BUILD_FLAT ---help--- Define if architecture-specific I2S device initialize is available. If defined, the platform specific code must provide a function diff --git a/examples/mtdpart/Kconfig b/examples/mtdpart/Kconfig index d653d13fc..eeec4d9b2 100644 --- a/examples/mtdpart/Kconfig +++ b/examples/mtdpart/Kconfig @@ -6,7 +6,7 @@ config EXAMPLES_MTDPART tristate "MTD partition test" default n - depends on MTD_PARTITION && !BUILD_PROTECTED && !BUILD_KERNEL + depends on MTD_PARTITION && BUILD_FLAT ---help--- Enable the MTD partition test example. diff --git a/examples/mtdrwb/Kconfig b/examples/mtdrwb/Kconfig index 1ce5949b5..9a439ef2f 100644 --- a/examples/mtdrwb/Kconfig +++ b/examples/mtdrwb/Kconfig @@ -6,7 +6,7 @@ config EXAMPLES_MTDRWB tristate "MTD R/W buffer test" default n - depends on (MTD_WRBUFFER || MTD_READAHEAD) && !BUILD_PROTECTED && !BUILD_KERNEL + depends on (MTD_WRBUFFER || MTD_READAHEAD) && BUILD_FLAT ---help--- Enable the MTD R/W buffer test example. diff --git a/system/composite/Kconfig b/system/composite/Kconfig index 5d9a6c309..c8e5bbb02 100644 --- a/system/composite/Kconfig +++ b/system/composite/Kconfig @@ -6,7 +6,7 @@ menuconfig SYSTEM_COMPOSITE tristate "USB Composite Device Commands" default n - depends on LIB_BOARDCTL && USBDEV_COMPOSITE && !BUILD_PROTECTED && !BUILD_KERNEL + depends on LIB_BOARDCTL && USBDEV_COMPOSITE && BUILD_FLAT select BOARDCTL_USBDEVCTRL ---help--- Enable the USB composite class controls. These controls include: diff --git a/system/usbmsc/Kconfig b/system/usbmsc/Kconfig index 68f56dd39..15b3751e5 100644 --- a/system/usbmsc/Kconfig +++ b/system/usbmsc/Kconfig @@ -6,7 +6,7 @@ menuconfig SYSTEM_USBMSC tristate "USB Mass Storage Device Commands" default n - depends on LIB_BOARDCTL && USBMSC && !BUILD_PROTECTED && !BUILD_KERNEL + depends on LIB_BOARDCTL && USBMSC && BUILD_FLAT select BOARDCTL_USBDEVCTRL ---help--- Enable the USB mass storage class controls. These controls include: