]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: Trigger a Warning if DEPRECATED is defined
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 29 May 2019 21:01:30 +0000 (17:01 -0400)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 13 Jun 2019 07:21:06 +0000 (12:51 +0530)
If configured target has deprecated configs enabled, trigger a warning
about this.

Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
[trini: Change from BROKEN to DEPRECATED]
Signed-off-by: Tom Rini <trini@konsulko.com>
Makefile

index 09d6c3a067dd9fddc52833ee8f46201be70b24bf..af21592dd41ae1db6d71010faba1a07b993cf2ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -928,6 +928,9 @@ cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \
                $(srctree)/scripts/config_whitelist.txt $(srctree)
 
 all:           $(ALL-y)
+ifeq ($(CONFIG_DEPRECATED),y)
+       $(warning "You have deprecated configuration options enabled in your .config! Please check your configuration.")
+endif
 ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
        @echo >&2 "===================== WARNING ======================"
        @echo >&2 "This board uses CONFIG_DM_I2C_COMPAT. Please remove"