]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fdt: Correct condition for SEPARATE_BSS
authorSimon Glass <sjg@chromium.org>
Mon, 28 Feb 2022 19:08:23 +0000 (12:08 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 6 Apr 2022 18:01:42 +0000 (14:01 -0400)
This may have different settings for SPL and TPL. Correct the condition.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c

index 87aa677a4a9192f048705fa03b8d7499bdd53cc6..086f0c732a340006685aa44d1920c1e8a7840f7c 100644 (file)
@@ -1227,7 +1227,7 @@ static void *fdt_find_separate(void)
 
 #ifdef CONFIG_SPL_BUILD
        /* FDT is at end of BSS unless it is in a different memory region */
-       if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS))
+       if (CONFIG_IS_ENABLED(SEPARATE_BSS))
                fdt_blob = (ulong *)&_image_binary_end;
        else
                fdt_blob = (ulong *)&__bss_end;