]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fdt: Add warning about CONFIG_OF_EMBED
authorSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2018 13:57:08 +0000 (06:57 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 12 Dec 2018 17:14:22 +0000 (12:14 -0500)
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>
Makefile

index 0d11ff97971ad673f04779d1831a19cf64a3b4f9..05896598fe3a12cf46aaca8ff1ddf24f9ed6dc6f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -947,6 +947,14 @@ ifeq ($(CONFIG_LIBATA)$(CONFIG_DM_SCSI)$(CONFIG_MVSATA_IDE),y)
        @echo "Failure to update by the deadline may result in board removal."
        @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