0001-board-tbs2910-disable-loadb-and-loads-commands.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 9fd573c8fb080b9f729015705b489d856904445b Mon Sep 17 00:00:00 2001
  2. From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  3. Date: Sat, 30 May 2020 05:24:19 +0200
  4. Subject: [PATCH 1/6] board: tbs2910: disable loadb and loads commands
  5. The loadb and loads commands are not needed for booting.
  6. There are also more reliable and faster alternatives to
  7. loadb and loads that can be used with the current configuration.
  8. As that the resulting image is already very close to the
  9. size limit, removing the loadb and loads commands shouldn't
  10. hurt.
  11. With arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola
  12. GNU/Linux distribution we have the following size
  13. reduction:
  14. - text: 6733 bytes
  15. - data: 116 bytes
  16. - bss: 1172 bytes
  17. - total: 8021 bytes
  18. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  19. Acked-by: Soeren Moch <smoch@web.de>
  20. ---
  21. configs/tbs2910_defconfig | 2 ++
  22. 1 file changed, 2 insertions(+)
  23. diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
  24. index 2ff0e160f7..2623eb73cd 100644
  25. --- a/configs/tbs2910_defconfig
  26. +++ b/configs/tbs2910_defconfig
  27. @@ -28,6 +28,8 @@ CONFIG_SYS_MEMTEST_START=0x10000000
  28. CONFIG_SYS_MEMTEST_END=0x2f400000
  29. CONFIG_CMD_GPIO=y
  30. CONFIG_CMD_I2C=y
  31. +# CONFIG_CMD_LOADB is not set
  32. +# CONFIG_CMD_LOADS is not set
  33. CONFIG_CMD_MMC=y
  34. CONFIG_CMD_PART=y
  35. CONFIG_CMD_PCI=y
  36. --
  37. 2.27.0