Skip to contentSkip to conversation

generic-board: make compile-time noise for non-generic boards

PATCH New Masahiro Yamada 2 participants 2 messages Nov 6, 2014 – Nov 10, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 generic-board: make compile-time noise for non-generic boards

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.

This commit intentionally outputs a warning message to stdout. We still have many unconverted boards. If we print the message to stderr, MAKEALL and buildman will report tons of broken boards and really important information will be buried.

---

Which is better v2(below) and this version?
http://patchwork.ozlabs.org/patch/402048/

The difference between the two is which stream is used, stdout or stderr.

Changes in v3:
- Print warning messages to stdout rather than stderr

Changes in v2:
- Mention to see doc/README.generic-board

 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)
Makefile +7 -0
index f6e1173..76c0876 100644
@@ -777,6 +777,13 @@ quiet_cmd_pad_cat = CAT     $@
 cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
 
 all:		$(ALL-y)
+ifneq ($(CONFIG_SYS_GENERIC_BOARD),y)
+	@echo "===================== WARNING ======================"
+	@echo "Please convert this board to generic board."
+	@echo "Otherwise it will be removed by the end of 2014."
+	@echo "See doc/README.generic-board for further information"
+	@echo "===================================================="
+endif
 
 PHONY += dtbs
 dtbs dts/dt.dtb: checkdtc u-boot
Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 1/1 generic-board: make compile-time noise for non-generic boards

Quoted 9 lines · Masahiro Yamada

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.

This commit intentionally outputs a warning message to stdout. We still have many unconverted boards. If we print the message to stderr, MAKEALL and buildman will report tons of broken boards and really important information will be buried.

Quoted 4 lines

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141110/6264edd4/attachment.pgp>