diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-13 17:31:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-13 17:31:31 -0400 |
commit | 055f9486589fd2db390729436beff8ac04fc3ae9 (patch) | |
tree | bcf56623429eb5181c3942975d65d93b5eb49586 | |
parent | 0e49f5c26caf9972137a474065afd4bdfe5ec062 (diff) | |
download | u-boot-055f9486589fd2db390729436beff8ac04fc3ae9.zip u-boot-055f9486589fd2db390729436beff8ac04fc3ae9.tar.gz u-boot-055f9486589fd2db390729436beff8ac04fc3ae9.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-- | 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) @@ -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 |