]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Kconfig: Add COMPILE_TEST option
authorTom Rini <trini@konsulko.com>
Fri, 4 Jul 2025 21:46:05 +0000 (15:46 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Jul 2025 17:33:25 +0000 (11:33 -0600)
Take the COMPILE_TEST option from the Linux Kernel v6.15 and since the
wording there is OK for us too, use it verbatim. Also update the default
for WERROR to be COMPILE_TEST which again matches the Linux Kernel.

This is the first big step needed to allow for "allyesconfig" to be
possible as it then lets us then disable things that aren't valid for a
compile only test.

Signed-off-by: Tom Rini <trini@konsulko.com>
Kconfig

diff --git a/Kconfig b/Kconfig
index 05b7f410fa596dbc7b763e9700326135ae6ffaf5..3571f5214e67c6a3907f9f7cc7ee0041364edf4b 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -27,8 +27,22 @@ config DEPRECATED
          code that relies on deprecated features that will be removed and
          the conversion deadline has passed.
 
+config COMPILE_TEST
+       bool "Compile also drivers which will not load"
+       help
+         Some drivers can be compiled on a different platform than they are
+         intended to be run on. Despite they cannot be loaded there (or even
+         when they load they cannot be used due to missing HW support),
+         developers still, opposing to distributors, might want to build such
+         drivers to compile-test them.
+
+         If you are a developer and want to build everything available, say Y
+         here. If you are a user/distributor, say N here to exclude useless
+         drivers to be distributed.
+
 config WERROR
        bool "Compile U-Boot with warnings as errors"
+       default COMPILE_TEST
        help
          A U-Boot build should not cause any compiler warnings, and this
          enables the '-Werror' flag to enforce that rule.