From fecec75b6205c299b6f422bbf175bd5d43485e02 Mon Sep 17 00:00:00 2001 From: "Arnout Vandecappelle (Essensium/Mind)" Date: Mon, 25 Jul 2022 17:22:27 +0200 Subject: [PATCH] configs/*: use BR2_ENABLE_LTO to enable LTO instead of BR2_GCC_ENABLE_LTO BR2_GCC_ENABLE_LTO only enables LTO in the toolchain, not in packages. Use BR2_ENABLE_LTO instead to enable it in packages as well. Note that BR2_GCC_ENABLE_LTO is currently non-functional (LTO is still enabled in the toolchain even if it's not set), so we *do* have LTO available in the toolchain. Note that the option has no effect at all on these defconfigs anyway, since they don't contain any package that is affected by the BR2_ENABLE_LTO option. Still, it makes sense to enable it for these really memory-constrained targets for when packages are added. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- configs/stm32f429_disco_xip_defconfig | 2 +- configs/stm32f469_disco_xip_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/stm32f429_disco_xip_defconfig b/configs/stm32f429_disco_xip_defconfig index 01b54c02cc..f9b3270ecd 100644 --- a/configs/stm32f429_disco_xip_defconfig +++ b/configs/stm32f429_disco_xip_defconfig @@ -2,7 +2,7 @@ BR2_arm=y BR2_cortex_m4=y BR2_KERNEL_HEADERS_5_15=y # BR2_UCLIBC_INSTALL_UTILS is not set -BR2_GCC_ENABLE_LTO=y +BR2_ENABLE_LTO=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y diff --git a/configs/stm32f469_disco_xip_defconfig b/configs/stm32f469_disco_xip_defconfig index d95b7759f3..fc3b3f9213 100644 --- a/configs/stm32f469_disco_xip_defconfig +++ b/configs/stm32f469_disco_xip_defconfig @@ -2,7 +2,7 @@ BR2_arm=y BR2_cortex_m4=y BR2_KERNEL_HEADERS_5_15=y # BR2_UCLIBC_INSTALL_UTILS is not set -BR2_GCC_ENABLE_LTO=y +BR2_ENABLE_LTO=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y