diff mbox series

[U-Boot,PATCHv3,04/10] Makefile: Trigger a Warning if DEPRECATED is defined

Message ID 1559163696-8722-4-git-send-email-trini@konsulko.com
State Accepted
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series [U-Boot,PATCHv3,01/10] arm: Remove zipitz2 board | expand

Commit Message

Tom Rini May 29, 2019, 9:01 p.m. UTC
From: Jagan Teki <jagan@amarulasolutions.com>

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 | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 07106138e9ff..08deab28cbbb 100644
--- a/Makefile
+++ b/Makefile
@@ -918,6 +918,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"