diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-13 17:31:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-14 09:27:24 -0400 |
commit | 775c6b238b5f6d039f841317ccba72833803af32 (patch) | |
tree | ee3c04bb832acfdd60052b331637e21d69fe63e4 | |
parent | 22d6e1861597d33551b8170f60a90a70e2ff050d (diff) | |
download | u-boot-TEST/failure-on-lack-of-DM_SERIAL-conversion.zip u-boot-TEST/failure-on-lack-of-DM_SERIAL-conversion.tar.gz u-boot-TEST/failure-on-lack-of-DM_SERIAL-conversion.tar.bz2 |
TEST: Make lack of DM_SERIAL migration fatalTEST/failure-on-lack-of-DM_SERIAL-conversionTEST/failure-on-lack-of-DM_SCSI-conversion
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1108,6 +1108,17 @@ define deprecated endef +define removing + @if [ -n "$(strip $(4))" ]; then if [ "$(got)" != "$(expect)" ]; then \ + echo >&2 "====================== ERROR ======================="; \ + echo >&2 "This board does not use $(firstword $(1)) (Driver Model"; \ + echo >&2 "for $(2)). Lack of migration is now fatal."; \ + echo >&2 "===================================================="; \ + exit 1; \ + fi; fi + +endef + PHONY += inputs inputs: $(INPUTS-y) @@ -1154,7 +1165,7 @@ endif @# confuses this rule. Use if() to send just a single character which @# is enable to tell 'deprecated' that one of these symbols exists $(call deprecated,CONFIG_TIMER,Timer drivers,v2023.01,$(if $(strip $(CONFIG_SYS_TIMER_RATE)$(CONFIG_SYS_TIMER_COUNTER)),x)) - $(call deprecated,CONFIG_DM_SERIAL,Serial drivers,v2023.04,$(CONFIG_SERIAL)) + $(call removing,CONFIG_DM_SERIAL,Serial drivers,v2023.04,$(CONFIG_SERIAL)) $(call deprecated,CONFIG_DM_SCSI,SCSI drivers,v2023.04,$(CONFIG_SCSI)) @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG |