]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: tbs2910: move CONFIG_BOOTCOMMAND from header to defconfig
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Sat, 30 May 2020 03:24:21 +0000 (05:24 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2020 17:17:23 +0000 (13:17 -0400)
This doesn't affect the size of the image: with
arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola GNU/Linux
distribution, the text, data, bss and total sizes remain
unchanged.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Reviewed-by: Soeren Moch <smoch@web.de>
configs/tbs2910_defconfig
include/configs/tbs2910.h

index cc459e6de60fea1ce2ce90d57553cf7e7bf9e500..d14ff45615f7ab28b3457b9fbc6f1850057e4c36 100644 (file)
@@ -10,6 +10,8 @@ CONFIG_PRE_CON_BUF_ADDR=0x7c000000
 CONFIG_CMD_HDMIDETECT=y
 CONFIG_AHCI=y
 CONFIG_BOOTDELAY=3
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="mmc rescan; if run bootcmd_up1; then run bootcmd_up2; else run bootcmd_mmc; fi"
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="echo PCI:; pci enum; pci 1; usb start; if hdmidet; then run set_con_hdmi; else run set_con_serial; fi"
 CONFIG_PRE_CONSOLE_BUFFER=y
index 7376b91f550a8a30143ef456515956101f0c0bae..a23011125144c5132b10a173298f1997d29d43e6 100644 (file)
        "stdin=serial,usbkbd\0" \
        "stdout=serial,vga\0"
 
-#define CONFIG_BOOTCOMMAND \
-       "mmc rescan; " \
-       "if run bootcmd_up1; then " \
-               "run bootcmd_up2; " \
-       "else " \
-               "run bootcmd_mmc; " \
-       "fi"
-
 #endif                        /* __TBS2910_CONFIG_H * */