Skip to contentSkip to conversation

Makefile: Remove idiotic ominous messages

PATCH New Alexandru Gagniuc 2 participants 2 messages Apr 1, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Remove idiotic ominous messages

Right before v2021.04-rc5 was dropped, several patches landed that updated the way DM warnings are printed. A side-effect of those changes is that, instead of printing warnings where appropriate, the Makefile prints the script that checks for the conditions:

    if [ -n "y" ]; then if [ "y y" != "y y" ]; then echo >&2
    "===================== WARNING ======================"; echo >&2
    et cetera

Remedy this by appending "@" to the commands.

Fixes 8cd1874f4c ("Makefile: Use common code for DM_ETH deprecation warning")
Fixes 78b4a564cb ("Makefile: Use common code for WDT deprecation warning")
Fixes ec384f9f12 ("Makefile: Use common code for SPI_FLASH deprecation warning")
Fixes d13aee07fd ("Makefile: Use common code for DM_VIDEO deprecation warning")
Fixes 39e526a8ec ("Makefile: Use common code for PCI deprecation warning")
Fixes 099288bf78 ("Makefile: Use common code for LIBATA deprecation warning")
Fixes a883435298 ("Makefile: Use common code for MVSATA_IDE deprecation warning")
Fixes 9e035b8ee1 ("Makefile: Use common code for USB deprecation warning")
Fixes 77dc55ea39 ("Makefile: Use common code for MMC deprecation warning")
Fixes 06467e4652 ("Makefile: Move non-DM migration messages to the top")
---
 Makefile | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
Makefile +11 -11
index e60717f7a2..ad48cd116e 100644
@@ -1077,25 +1077,25 @@ ifneq ($(CONFIG_DM),y)
 	@echo >&2 "See doc/driver-model/migration.rst for more info."
 	@echo >&2 "===================================================="
 endif
-	$(call deprecated,CONFIG_DM_MMC CONFIG_BLK,MMC,v2019.04,$(CONFIG_MMC))
-	$(call deprecated,CONFIG_DM_USB CONFIG_OF_CONTROL CONFIG_BLK,\
+	@$(call deprecated,CONFIG_DM_MMC CONFIG_BLK,MMC,v2019.04,$(CONFIG_MMC))
+	@$(call deprecated,CONFIG_DM_USB CONFIG_OF_CONTROL CONFIG_BLK,\
 		USB,v2019.07,$(CONFIG_USB))
-	$(call deprecated,CONFIG_AHCI,AHCI instead of CONFIG_MVSATA_IDE,v2019.07, \
+	@$(call deprecated,CONFIG_AHCI,AHCI instead of CONFIG_MVSATA_IDE,v2019.07, \
 		$(CONFIG_MVSATA_IDE))
-	$(call deprecated,CONFIG_AHCI,AHCI,v2019.07, $(CONFIG_LIBATA))
-	$(call deprecated,CONFIG_DM_PCI,PCI,v2019.07,$(CONFIG_PCI))
-	$(call deprecated,CONFIG_DM_VIDEO,video,v2019.07,\
+	@$(call deprecated,CONFIG_AHCI,AHCI,v2019.07, $(CONFIG_LIBATA))
+	@$(call deprecated,CONFIG_DM_PCI,PCI,v2019.07,$(CONFIG_PCI))
+	@$(call deprecated,CONFIG_DM_VIDEO,video,v2019.07,\
 		$(CONFIG_LCD)$(CONFIG_VIDEO))
-	$(call deprecated,CONFIG_DM_SPI_FLASH,SPI flash,v2019.07,\
+	@$(call deprecated,CONFIG_DM_SPI_FLASH,SPI flash,v2019.07,\
 		$(CONFIG_SPI_FLASH))
-	$(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
+	@$(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
 		$(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG))
-	$(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET))
-	$(call deprecated,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_I2C))
+	@$(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET))
+	@$(call deprecated,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_I2C))
 	@# Check that this build does not use CONFIG options that we do not
 	@# know about unless they are in Kconfig. All the existing CONFIG
 	@# options are whitelisted, so new ones should not be added.
-	$(call cmd,cfgcheck,u-boot.cfg)
+	@$(call cmd,cfgcheck,u-boot.cfg)
 
 PHONY += dtbs
 dtbs: dts/dt.dtb
Signature · 1 line
2.26.3
#1 lore raw

PATCH 1/1 Makefile: Remove idiotic ominous messages

Quoted 10 lines · Alexandru Gagniuc

Right before v2021.04-rc5 was dropped, several patches landed that updated the way DM warnings are printed. A side-effect of those changes is that, instead of printing warnings where appropriate, the Makefile prints the script that checks for the conditions:

    if [ -n "y" ]; then if [ "y y" != "y y" ]; then echo >&2
    "===================== WARNING ======================"; echo >&2
    et cetera

Remedy this by appending "@" to the commands.

Deferring this in favor of
https://patchwork.ozlabs.org/project/uboot/patch/20210331221813.2568659-1-sjg at chromium.org/

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210401/d2f6db96/attachment.sig>