[U-Boot] [PATCH 3/3] dm: Add a note about using driver model
Simon Glass
sjg at chromium.org
Thu Nov 22 20:11:27 UTC 2018
All boards should now use driver model. Add a noisy warning for those that
still do not.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Makefile b/Makefile
index 8bf422f6a85..21195948078 100644
--- a/Makefile
+++ b/Makefile
@@ -918,12 +918,20 @@ ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
@echo "before sending patches to the mailing list."
@echo "===================================================="
endif
+ifeq ($(CONFIG_DM),y)
ifneq ($(CONFIG_BLK),y)
@echo "===================== WARNING ======================"
@echo "This board does not use CONFIG_BLK. Please update"
@echo "the board to use CONFIG_BLK before the end of 2018."
@echo "See doc/driver-model/MIGRATION.txt for more info."
@echo "===================================================="
+endif
+else
+ @echo "===================== WARNING ======================"
+ @echo "This board does not use driver model. Please update"
+ @echo "the board to use CONFIG_DM before the end of 2018."
+ @echo "See doc/driver-model/MIGRATION.txt for more info."
+ @echo "===================================================="
endif
@# Check that this build does not use CONFIG options that we do not
@# know about unless they are in Kconfig. All the existing CONFIG
--
2.19.1.1215.g8438c0b245-goog
More information about the U-Boot
mailing list