aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-10-13 17:31:31 -0400
committerTom Rini <trini@konsulko.com>2022-10-14 09:27:24 -0400
commit775c6b238b5f6d039f841317ccba72833803af32 (patch)
treeee3c04bb832acfdd60052b331637e21d69fe63e4
parent22d6e1861597d33551b8170f60a90a70e2ff050d (diff)
downloadu-boot-TEST/failure-on-lack-of-DM_SCSI-conversion.zip
u-boot-TEST/failure-on-lack-of-DM_SCSI-conversion.tar.gz
u-boot-TEST/failure-on-lack-of-DM_SCSI-conversion.tar.bz2
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3866cc6..a0fda97 100644
--- a/Makefile
+++ b/Makefile
@@ -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