fdt: Add warning about CONFIG_OF_EMBED
This option has crept into use with some boards. Add a warning to try to
prevent this.
As an example:
https://lists.denx.de/pipermail/u-boot/2017-September/304966.html
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
diff --git a/Makefile b/Makefile
index 0d11ff9..0589659 100644
--- a/Makefile
+++ b/Makefile
@@ -948,6 +948,14 @@
@echo "See doc/driver-model/MIGRATION.txt for more info."
@echo "===================================================="
endif
+ifeq ($(CONFIG_OF_EMBED),y)
+ @echo "===================== WARNING ======================"
+ @echo "CONFIG_OF_EMBED is enabled. This option should only"
+ @echo "be used for debugging purposes. Please use"
+ @echo "CONFIG_OF_SEPARATE for boards in mainline."
+ @echo "See doc/README.fdt-control 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
@# options are whitelisted, so new ones should not be added.