0001-arm-mvebu-turris_omnia-Enable-LTO-by-default-on-Turr.patch 969 B

123456789101112131415161718192021222324252627282930
  1. From ca4ecdce4cdcfab7df101b5df6ddad43d2f549e1 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <[email protected]>
  3. Date: Thu, 4 Apr 2024 09:50:50 +0200
  4. Subject: [PATCH] arm: mvebu: turris_omnia: Enable LTO by default on Turris
  5. Omnia
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. U-Boot builds for Turris Omnia are approaching the limit of 0xf0000
  10. bytes, which is the size of the U-Boot partition on Omnia.
  11. Enable LTO to get more size optimized binaries.
  12. Signed-off-by: Marek Behún <[email protected]>
  13. Reviewed-by: Stefan Roese <[email protected]>
  14. ---
  15. configs/turris_omnia_defconfig | 1 +
  16. 1 file changed, 1 insertion(+)
  17. --- a/configs/turris_omnia_defconfig
  18. +++ b/configs/turris_omnia_defconfig
  19. @@ -31,6 +31,7 @@ CONFIG_AHCI=y
  20. CONFIG_OF_BOARD_FIXUP=y
  21. CONFIG_SYS_MEMTEST_START=0x00800000
  22. CONFIG_SYS_MEMTEST_END=0x00ffffff
  23. +CONFIG_LTO=y
  24. CONFIG_HAS_BOARD_SIZE_LIMIT=y
  25. CONFIG_BOARD_SIZE_LIMIT=983040
  26. CONFIG_FIT=y