[U-Boot] [PATCH] Makefile: print warning if CONFIG_SYS_EXTRA_OPTIONS is used

Masahiro Yamada yamada.masahiro at socionext.com
Sat Feb 18 06:24:53 UTC 2017


The prompt of this option is marked "DEPRECATED" in capital letters,
and its help clearly says:
  This option was prepared for the smooth migration from the old
  configuration to Kconfig. Since this option will be removed sometime,
  new boards should not use this option.

However, we have had almost no progress on this.  In fact, this
option is often abused for fresh porting, and more and more new
defconfigs with it are coming in (for example, SUNXI boards).

We introduced scripts/check-config.sh to ban new legacy options.
We need something forcible for the migration.  Here it is.

If CONFIG_SYS_EXTRA_OPTIONS is used, a prompt for the conversion is
displayed at the end of the build.  The action needed is simple;
instead of CONFIG_SYS_EXTRA_OPTIONS="FOO,BAR", please create primary
entries for CONFIG_FOO and CONFIG_BAR in Kconfig.  If no action is
taken, the board will be removed after the v2017.05 release.

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 38b42da..886ebc3 100644
--- a/Makefile
+++ b/Makefile
@@ -848,6 +848,13 @@ ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
 	@echo "before sending patches to the mailing list."
 	@echo "===================================================="
 endif
+ifneq ($(CONFIG_SYS_EXTRA_OPTIONS),"")
+	@echo "===================== WARNING ========================="
+	@echo "CONFIG_SYS_EXTRA_OPTIONS is deprecated.  Please create"
+	@echo "primary entries in Kconfig.  Otherwise, this board will"
+	@echo "be removed after v2017.05 release."
+	@echo "======================================================="
+endif
 	@# Check that this build does not use CONFIG options that we do not
 	@# know about unless they are in Kconfig. All the existing CONFIG
 	@# options are whitelisted, so new ones should not be added.
-- 
2.7.4



More information about the U-Boot mailing list