0003-board-tbs2910-move-CONFIG_BOOTCOMMAND-from-header-to.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 0c7550f03a67d9fd2b67e4c299f6d8908e2c7d5b Mon Sep 17 00:00:00 2001
  2. From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  3. Date: Sat, 30 May 2020 05:24:21 +0200
  4. Subject: [PATCH 3/6] board: tbs2910: move CONFIG_BOOTCOMMAND from header to
  5. defconfig
  6. This doesn't affect the size of the image: with
  7. arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola GNU/Linux
  8. distribution, the text, data, bss and total sizes remain
  9. unchanged.
  10. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  11. Reviewed-by: Soeren Moch <smoch@web.de>
  12. ---
  13. configs/tbs2910_defconfig | 2 ++
  14. include/configs/tbs2910.h | 8 --------
  15. 2 files changed, 2 insertions(+), 8 deletions(-)
  16. diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
  17. index cc459e6de6..d14ff45615 100644
  18. --- a/configs/tbs2910_defconfig
  19. +++ b/configs/tbs2910_defconfig
  20. @@ -10,6 +10,8 @@ CONFIG_PRE_CON_BUF_ADDR=0x7c000000
  21. CONFIG_CMD_HDMIDETECT=y
  22. CONFIG_AHCI=y
  23. CONFIG_BOOTDELAY=3
  24. +CONFIG_USE_BOOTCOMMAND=y
  25. +CONFIG_BOOTCOMMAND="mmc rescan; if run bootcmd_up1; then run bootcmd_up2; else run bootcmd_mmc; fi"
  26. CONFIG_USE_PREBOOT=y
  27. CONFIG_PREBOOT="echo PCI:; pci enum; pci 1; usb start; if hdmidet; then run set_con_hdmi; else run set_con_serial; fi"
  28. CONFIG_PRE_CONSOLE_BUFFER=y
  29. diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
  30. index 7376b91f55..a230111251 100644
  31. --- a/include/configs/tbs2910.h
  32. +++ b/include/configs/tbs2910.h
  33. @@ -100,12 +100,4 @@
  34. "stdin=serial,usbkbd\0" \
  35. "stdout=serial,vga\0"
  36. -#define CONFIG_BOOTCOMMAND \
  37. - "mmc rescan; " \
  38. - "if run bootcmd_up1; then " \
  39. - "run bootcmd_up2; " \
  40. - "else " \
  41. - "run bootcmd_mmc; " \
  42. - "fi"
  43. -
  44. #endif /* __TBS2910_CONFIG_H * */
  45. --
  46. 2.27.0