summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig17
1 files changed, 15 insertions, 2 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 400c0553cf..44a955c5ff 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -39,8 +39,8 @@ config BLOCK_WRITE
bool
config ELF
- bool
- depends on MIPS
+ bool "ELF Support" if COMPILE_TEST
+ depends on MIPS || COMPILE_TEST
config FILETYPE
bool
@@ -1336,6 +1336,19 @@ config KASAN
Enables KASAN (KernelAddressSANitizer) - runtime memory debugger,
designed to find out-of-bounds accesses and use-after-free bugs.
+config COMPILE_TEST
+ bool "compile-test drivers of other platforms"
+ default n
+ help
+ Some drivers can be compiled on a different platform than they are
+ intended to be run on. Despite they cannot be used there due to
+ missing HW support, developers still, opposing to users, might want
+ to build such drivers to compile-test them.
+
+ If you are a developer and want to build as much as currently possible,
+ say Y here. If you are a user, say N here to avoid being prompted for
+ inclusion of unrelated drivers.
+
endmenu
config HAS_DEBUG_LL