]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Correct use of CMD_BOOTI and CMD_BOOTZ
authorSimon Glass <sjg@chromium.org>
Thu, 22 Aug 2024 13:54:51 +0000 (07:54 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 23 Aug 2024 21:58:41 +0000 (15:58 -0600)
These should have a CONFIG_ prefix. Add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 7a0d88076b9 ("Add in the ability to load and boot an uncompr...")
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
common/spl/spl.c

index d6a364de6ee89d26ed719a27edb88a906eb5a811..028cba964fb54a0e448bbf6bb30e0034803c82f4 100644 (file)
@@ -322,7 +322,7 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
 #endif
 
 #if CONFIG_IS_ENABLED(OS_BOOT)
-#if defined(CMD_BOOTI)
+#if defined(CONFIG_CMD_BOOTI)
                ulong start, size;
 
                if (!booti_setup((ulong)header, &start, &size, 0)) {
@@ -336,7 +336,7 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
                              spl_image->load_addr, spl_image->size);
                        return 0;
                }
-#elif defined(CMD_BOOTZ)
+#elif defined(CONFIG_CMD_BOOTZ)
                ulong start, end;
 
                if (!bootz_setup((ulong)header, &start, &end)) {