From 63235bd077d3c5c302bd3382b3ec9975ba28d650 Mon Sep 17 00:00:00 2001 From: Jagan Teki Date: Wed, 29 May 2019 17:01:30 -0400 Subject: [PATCH] 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 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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" -- 2.25.1