From 011079c375d029f47e91d57f84927f392ffd2d61 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 4 Jul 2025 15:46:05 -0600 Subject: [PATCH] Kconfig: Add COMPILE_TEST option 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 --- Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Kconfig b/Kconfig index 05b7f410fa5..3571f5214e6 100644 --- 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. -- 2.47.2