]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
image: Drop IMAGE_BOOT_GET_CMDLINE
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:25 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
This is not needed with Kconfig, since we can use IS_ENABLED() easily
enough and the board code is now in a separate file. Update the only place
where this is used and drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
common/image-board.c
include/image.h

index cb2479f2f30dbfbc6c9f0abe2c47113d0ee036df..6565f014f7ea1563b0178f6e83d64f29774bcc48 100644 (file)
@@ -898,7 +898,7 @@ int image_setup_linux(bootm_headers_t *images)
        if (CONFIG_IS_ENABLED(OF_LIBFDT))
                boot_fdt_add_mem_rsv_regions(lmb, *of_flat_tree);
 
-       if (IMAGE_BOOT_GET_CMDLINE) {
+       if (IS_ENABLED(CONFIG_SYS_BOOT_GET_CMDLINE)) {
                ret = boot_get_cmdline(lmb, &images->cmdline_start,
                                       &images->cmdline_end);
                if (ret) {
index dc872ef5b2437127855eda9b2ed332180284de55..00a80999584554ffca4b492c855d585b7564eb0c 100644 (file)
@@ -49,12 +49,6 @@ struct fdt_region;
 #include <fdt_support.h>
 #endif /* FIT */
 
-#ifdef CONFIG_SYS_BOOT_GET_CMDLINE
-# define IMAGE_BOOT_GET_CMDLINE                1
-#else
-# define IMAGE_BOOT_GET_CMDLINE                0
-#endif
-
 #ifdef CONFIG_OF_BOARD_SETUP
 # define IMAGE_OF_BOARD_SETUP          1
 #else