From: Jagan Teki Date: Wed, 29 May 2019 21:01:30 +0000 (-0400) Subject: Makefile: Trigger a Warning if DEPRECATED is defined X-Git-Tag: v2019.07~27^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=63235bd077d3c5c302bd3382b3ec9975ba28d650;p=oweals%2Fu-boot.git Makefile: Trigger a Warning if DEPRECATED is defined If configured target has deprecated configs enabled, trigger a warning about this. Cc: Heinrich Schuchardt Signed-off-by: Jagan Teki [trini: Change from BROKEN to DEPRECATED] Signed-off-by: Tom Rini --- diff --git a/Makefile b/Makefile index 09d6c3a067..af21592dd4 100644 --- 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"