diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-05-08 08:25:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-08 14:46:42 +0200 |
commit | 026f6b1938292de48e00bd771720caae5ada1de9 (patch) | |
tree | 2aaf19a7c16e30eb94908d594cf3674ad99943a1 | |
parent | 48ebf1d9b2795eae0287d353d3f3f28902b2d127 (diff) | |
download | barebox-026f6b1938292de48e00bd771720caae5ada1de9.tar.gz barebox-026f6b1938292de48e00bd771720caae5ada1de9.tar.xz |
common: introduce COMPILE_TEST option for build-testing
Compile-time analysis may help us catch latent bugs in barebox. For this
to be most effective, we need an easy way to compile as much of barebox
as possible. Giving all driver options prompts would do this, but at the
cost of making user experience worse, by asking them about drivers for HW
that's clearly not relevant to the platform they selected.
Do as Linux does and provide a default-off COMPILE_TEST option, which we
can use to make extra drivers selectable.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 400c0553cf..0df45d1f6b 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -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 |