[U-Boot] [PATCH] generic-board: make compile-time noise for non-generic boards

Masahiro Yamada yamada.m at jp.panasonic.com
Sun Oct 19 19:46:30 CEST 2014


Commit 0f605c1501f6 (Start the deprecation process for generic board)
added a run-time warning message.  Let's be noisier for non-generic
boards to inform the dead line of the conversion.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Cc: Tom Rini <trini at ti.com>
Cc: Simon Glass <sjg at chromium.org>
---

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

diff --git a/Makefile b/Makefile
index 99097e1..f439d82 100644
--- a/Makefile
+++ b/Makefile
@@ -775,6 +775,12 @@ quiet_cmd_pad_cat = CAT     $@
 cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
 
 all:		$(ALL-y)
+ifneq ($(CONFIG_SYS_GENERIC_BOARD),y)
+	@echo >&2 "==================== WARNING ====================="
+	@echo >&2 "Please convert this board to generic board."
+	@echo >&2 "Otherwise it will be removed by the end of 2014."
+	@echo >&2 "=================================================="
+endif
 
 PHONY += dtbs
 dtbs dts/dt.dtb: checkdtc u-boot
-- 
1.9.1



More information about the U-Boot mailing list