]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: versal_net: Enable CONFIG_LTO for mini qspi/ospi
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Fri, 26 Jan 2024 08:11:39 +0000 (13:41 +0530)
committerMichal Simek <michal.simek@amd.com>
Mon, 12 Feb 2024 08:28:31 +0000 (09:28 +0100)
Adding a tiny bit more code for mini u-boot leads to a OCM
image overflow. Fix this by enabling LTO for this board, so that such
changes still can be made to the common U-Boot code.

Enable building mini u-boot image with LTO, which results in about 8KB
reduction in size.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20240126081139.3210211-1-venkatesh.abbarapu@amd.com
configs/xilinx_versal_net_mini_ospi_defconfig
configs/xilinx_versal_net_mini_qspi_defconfig

index 5f42243d22b860316e433fb827c97cdf0a8faca1..d78c9f805990c9f911c8912ae924244c07650d77 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_DEFAULT_DEVICE_TREE="versal-net-mini-ospi-single"
 CONFIG_SYS_MEM_RSVD_FOR_MMU=y
 # CONFIG_PSCI_RESET is not set
 CONFIG_SYS_LOAD_ADDR=0xBBF80000
+CONFIG_LTO=y
 # CONFIG_EXPERT is not set
 CONFIG_REMAKE_ELF=y
 # CONFIG_AUTOBOOT is not set
index 4fa83faa40120c70cd9e12f106510e0425dca1a3..b0567f857a3adedd6823f034863fb321ad0d444a 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_DEFAULT_DEVICE_TREE="versal-net-mini-qspi-single"
 CONFIG_SYS_MEM_RSVD_FOR_MMU=y
 # CONFIG_PSCI_RESET is not set
 CONFIG_SYS_LOAD_ADDR=0xBBF80000
+CONFIG_LTO=y
 # CONFIG_EXPERT is not set
 CONFIG_REMAKE_ELF=y
 # CONFIG_AUTOBOOT is not set