* [PATCH] configs: versal_net: Enable CONFIG_LTO for mini qspi/ospi
@ 2024-01-26 8:11 Venkatesh Yadav Abbarapu
2024-02-06 11:34 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Venkatesh Yadav Abbarapu @ 2024-01-26 8:11 UTC (permalink / raw
To: u-boot; +Cc: michal.simek, git
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: Michal Simek <michal.simek@amd.com>
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
---
configs/xilinx_versal_net_mini_ospi_defconfig | 1 +
configs/xilinx_versal_net_mini_qspi_defconfig | 1 +
2 files changed, 2 insertions(+)
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
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] configs: versal_net: Enable CONFIG_LTO for mini qspi/ospi
2024-01-26 8:11 [PATCH] configs: versal_net: Enable CONFIG_LTO for mini qspi/ospi Venkatesh Yadav Abbarapu
@ 2024-02-06 11:34 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2024-02-06 11:34 UTC (permalink / raw
To: Venkatesh Yadav Abbarapu, u-boot; +Cc: git
On 1/26/24 09:11, Venkatesh Yadav Abbarapu wrote:
> 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: Michal Simek <michal.simek@amd.com>
> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
> ---
> configs/xilinx_versal_net_mini_ospi_defconfig | 1 +
> configs/xilinx_versal_net_mini_qspi_defconfig | 1 +
> 2 files changed, 2 insertions(+)
>
> 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
Applied.
M
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-06 11:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 8:11 [PATCH] configs: versal_net: Enable CONFIG_LTO for mini qspi/ospi Venkatesh Yadav Abbarapu
2024-02-06 11:34 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.