diff options
author | Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> | 2024-01-26 13:41:39 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2024-02-12 09:28:31 +0100 |
commit | 8a58aed145754742000df2fca9d6c56570d6a4f0 (patch) | |
tree | fcd472663a02af337628494b57d373caf32b35c7 /configs | |
parent | 958526f250cb0752ed639f7d98e10b29a26f06e0 (diff) | |
download | u-boot-8a58aed145754742000df2fca9d6c56570d6a4f0.tar.gz u-boot-8a58aed145754742000df2fca9d6c56570d6a4f0.tar.bz2 u-boot-8a58aed145754742000df2fca9d6c56570d6a4f0.zip |
configs: versal_net: Enable CONFIG_LTO for mini qspi/ospi
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
Diffstat (limited to 'configs')
-rw-r--r-- | configs/xilinx_versal_net_mini_ospi_defconfig | 1 | ||||
-rw-r--r-- | configs/xilinx_versal_net_mini_qspi_defconfig | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/configs/xilinx_versal_net_mini_ospi_defconfig b/configs/xilinx_versal_net_mini_ospi_defconfig index 5f42243d22..d78c9f8059 100644 --- a/configs/xilinx_versal_net_mini_ospi_defconfig +++ b/configs/xilinx_versal_net_mini_ospi_defconfig @@ -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 diff --git a/configs/xilinx_versal_net_mini_qspi_defconfig b/configs/xilinx_versal_net_mini_qspi_defconfig index 4fa83faa40..b0567f857a 100644 --- a/configs/xilinx_versal_net_mini_qspi_defconfig +++ b/configs/xilinx_versal_net_mini_qspi_defconfig @@ -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 |