summaryrefslogtreecommitdiff
path: root/libre/uboot4extlinux-imx/0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/uboot4extlinux-imx/0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch')
-rw-r--r--libre/uboot4extlinux-imx/0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/libre/uboot4extlinux-imx/0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch b/libre/uboot4extlinux-imx/0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch
new file mode 100644
index 000000000..7c59f3ccf
--- /dev/null
+++ b/libre/uboot4extlinux-imx/0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch
@@ -0,0 +1,51 @@
+From 0c7550f03a67d9fd2b67e4c299f6d8908e2c7d5b Mon Sep 17 00:00:00 2001
+From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+Date: Sat, 30 May 2020 05:24:21 +0200
+Subject: [PATCH 3/6] board: tbs2910: move CONFIG_BOOTCOMMAND from header to
+ defconfig
+
+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 | 2 ++
+ include/configs/tbs2910.h | 8 --------
+ 2 files changed, 2 insertions(+), 8 deletions(-)
+
+diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
+index cc459e6de6..d14ff45615 100644
+--- a/configs/tbs2910_defconfig
++++ b/configs/tbs2910_defconfig
+@@ -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
+diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
+index 7376b91f55..a230111251 100644
+--- a/include/configs/tbs2910.h
++++ b/include/configs/tbs2910.h
+@@ -100,12 +100,4 @@
+ "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 * */
+--
+2.27.0
+