]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
vexpress_aemv8a: allow overriding BOOTCOMMAND
authorStanislav Pinchuk <Stanislav.Pinchuk@kaspersky.com>
Wed, 20 Jan 2021 18:54:53 +0000 (21:54 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 29 Jan 2021 15:36:48 +0000 (10:36 -0500)
Re-send because of line-wraps.

This patch fixes the behaviour of the menuconfig's BOOTCOMMAND
setting. Which is just ignored without that patch on
vexpress_aemv8a platform.

Signed-off-by: Stanislav.Pinchuk@kaspersky.com
include/configs/vexpress_aemv8a.h

index e63c335f8575088f910a070afd322feae0fa733e..566bee5b87b63df688208c465b4e2ecb27353d9e 100644 (file)
                                "fdt_alt_name=juno\0" \
                                "fdt_addr_r=0x80000000\0" \
 
+#ifndef CONFIG_BOOTCOMMAND
 /* Copy the kernel and FDT to DRAM memory and boot */
 #define CONFIG_BOOTCOMMAND     "afs load ${kernel_name} ${kernel_addr_r} ;"\
                                "if test $? -eq 1; then "\
                                "  else setenv ramdisk_param -; "\
                                "fi ; " \
                                "booti ${kernel_addr_r} ${ramdisk_param} ${fdt_addr_r}"
+#endif
 
 
 #elif CONFIG_TARGET_VEXPRESS64_BASE_FVP
                                "boot_name=boot.img\0"          \
                                "boot_addr=0x8007f800\0"
 
+#ifndef CONFIG_BOOTCOMMAND
 #define CONFIG_BOOTCOMMAND     "if smhload ${boot_name} ${boot_addr}; then " \
                                "  set bootargs; " \
                                "  abootimg addr ${boot_addr}; " \
                                "  fdt chosen ${initrd_addr} ${initrd_end}; " \
                                "  booti $kernel_addr - $fdt_addr; " \
                                "fi"
-
-
+#endif
 #endif
 
 /* Monitor Command Prompt */