summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include/lto.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/conf/distro/include/lto.inc
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro/include/lto.inc')
-rw-r--r--meta/conf/distro/include/lto.inc42
1 files changed, 21 insertions, 21 deletions
diff --git a/meta/conf/distro/include/lto.inc b/meta/conf/distro/include/lto.inc
index 20895ad40d..79818ac09f 100644
--- a/meta/conf/distro/include/lto.inc
+++ b/meta/conf/distro/include/lto.inc
@@ -1,32 +1,32 @@
1# To enable LTO, add following in local.conf 1# To enable LTO, add following in local.conf
2# require conf/distro/include/lto.inc 2# require conf/distro/include/lto.inc
3# DISTRO_FEATURES_append = " lto" 3# DISTRO_FEATURES:append = " lto"
4# 4#
5 5
6# Disable LTO for following packages 6# Disable LTO for following packages
7LTO_pn-glibc = "" 7LTO:pn-glibc = ""
8LTO_pn-gcc-runtime = "" 8LTO:pn-gcc-runtime = ""
9LTO_pn-libgcc-initial = "" 9LTO:pn-libgcc-initial = ""
10LTO_pn-libgcc = "" 10LTO:pn-libgcc = ""
11LTO_pn-libaio = "" 11LTO:pn-libaio = ""
12LTO_pn-libpam = "" 12LTO:pn-libpam = ""
13LTO_pn-elfutils = "" 13LTO:pn-elfutils = ""
14LTO_pn-perl = "" 14LTO:pn-perl = ""
15LTO_pn-busybox = "" 15LTO:pn-busybox = ""
16LTO_pn-libxcrypt = "" 16LTO:pn-libxcrypt = ""
17LTO_pn-curl = "" 17LTO:pn-curl = ""
18LTO_pn-libcap = "" 18LTO:pn-libcap = ""
19LTO_pn-libproxy = "" 19LTO:pn-libproxy = ""
20LTO_pn-libbsd = "" 20LTO:pn-libbsd = ""
21LTO_pn-perf = "" 21LTO:pn-perf = ""
22# webkit is not linking properly with LTO, disable until next time 22# webkit is not linking properly with LTO, disable until next time
23LTO_pn-webkitgtk = "" 23LTO:pn-webkitgtk = ""
24LTO_pn-xserver-xorg = "" 24LTO:pn-xserver-xorg = ""
25 25
26# Custom LTO flags 26# Custom LTO flags
27# disable partitioning/streaming algorithm since its uses ASM 27# disable partitioning/streaming algorithm since its uses ASM
28# constructs not compatible with lto 28# constructs not compatible with lto
29LTOEXTRA_pn-alsa-lib = "-flto-partition=none" 29LTOEXTRA:pn-alsa-lib = "-flto-partition=none"
30 30
31LTOEXTRA ?= "" 31LTOEXTRA ?= ""
32 32
@@ -43,7 +43,7 @@ LTOEXTRA ?= ""
43# code from .a files to linker 43# code from .a files to linker
44LTO ?= "-flto -ffat-lto-objects -fuse-linker-plugin ${LTOEXTRA}" 44LTO ?= "-flto -ffat-lto-objects -fuse-linker-plugin ${LTOEXTRA}"
45 45
46SELECTED_OPTIMIZATION_append = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}" 46SELECTED_OPTIMIZATION:append = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}"
47TARGET_LDFLAGS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}" 47TARGET_LDFLAGS:append:class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}"
48 48
49SELECTED_OPTIMIZATION[vardeps] += "LTO LTOEXTRA" 49SELECTED_OPTIMIZATION[vardeps] += "LTO LTOEXTRA"