Make ARCH_FIXUP_FDT_MEMORY depend on OF_LIBFDT
authorSimon Glass <sjg@chromium.org>
Thu, 14 Sep 2023 16:55:56 +0000 (10:55 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 Sep 2023 15:36:26 +0000 (11:36 -0400)
We need CONFIG_OF_LIBFDT to be able to do fdt fixups, so add that
condition.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/Kconfig

index 7ef44a2..2dd05e2 100644 (file)
@@ -695,7 +695,7 @@ config SUPPORT_RAW_INITRD
 
 config ARCH_FIXUP_FDT_MEMORY
        bool "Enable arch_fixup_memory_banks() call"
-       default y
+       default y if OF_LIBFDT
        help
          Enable FDT memory map syncup before OS boot. This feature can be
          used for booting OS with different memory setup where the part of