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-13 17:31:31 -0400
commit055f9486589fd2db390729436beff8ac04fc3ae9 (patch)
treebcf56623429eb5181c3942975d65d93b5eb49586
parent0e49f5c26caf9972137a474065afd4bdfe5ec062 (diff)
downloadu-boot-TEST/failure-on-lack-of-DM_I2C-conversion.zip
u-boot-TEST/failure-on-lack-of-DM_I2C-conversion.tar.gz
u-boot-TEST/failure-on-lack-of-DM_I2C-conversion.tar.bz2
TEST: Make lack of DM_I2C migration fatalTEST/failure-on-lack-of-DM_I2C-conversion
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..e0552c9 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)
@@ -1148,7 +1159,7 @@ ifneq ($(CONFIG_DM),y)
endif
$(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
$(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG))
- $(call deprecated,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_SYS_I2C_LEGACY))
+ $(call removing,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_SYS_I2C_LEGACY))
$(call deprecated,CONFIG_DM_KEYBOARD,Keyboard drivers,v2022.10,$(CONFIG_KEYBOARD))
@# CONFIG_SYS_TIMER_RATE has brackets in it for some boards which
@# confuses this rule. Use if() to send just a single character which