summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-05-05 14:21:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-09 07:50:14 +0100
commitee2f28c91a33e37de954d78eb3bde7ae1c0a89c5 (patch)
tree2850cdfb7ce0d19fa259bc7a933fb88769603125 /meta/recipes-devtools
parentce6add6f8aca03a8243f5569c5536181352f47bc (diff)
downloadpoky-ee2f28c91a33e37de954d78eb3bde7ae1c0a89c5.tar.gz
python3: clean up PACKAGECONFIG
There's no need to define the PACKAGECONFIG for each class when they're all identical (as native DISTRO_FEATURES are pruned before use). Also add a disabled case to the LTO configuration to be explicit. (From OE-Core rev: 00471d196768fcb4acaf1e2439fd90936d93fd98) (From OE-Core rev: 52232f8a6afef20ff4ef70367ecce74043210a46) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python3_3.11.2.bb6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python3_3.11.2.bb b/meta/recipes-devtools/python/python3_3.11.2.bb
index 4a9aa9306b..810f0c2e00 100644
--- a/meta/recipes-devtools/python/python3_3.11.2.bb
+++ b/meta/recipes-devtools/python/python3_3.11.2.bb
@@ -95,9 +95,7 @@ CACHED_CONFIGUREVARS = " \
95" 95"
96 96
97# PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407 97# PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407
98PACKAGECONFIG:class-target ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" 98PACKAGECONFIG ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
99PACKAGECONFIG:class-native ??= "editline gdbm"
100PACKAGECONFIG:class-nativesdk ??= "readline gdbm"
101PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline" 99PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline"
102PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline" 100PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline"
103# Use profile guided optimisation by running PyBench inside qemu-user 101# Use profile guided optimisation by running PyBench inside qemu-user
@@ -105,7 +103,7 @@ PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native"
105PACKAGECONFIG[tk] = ",,tk" 103PACKAGECONFIG[tk] = ",,tk"
106PACKAGECONFIG[tcl] = ",,tcl" 104PACKAGECONFIG[tcl] = ",,tcl"
107PACKAGECONFIG[gdbm] = ",,gdbm" 105PACKAGECONFIG[gdbm] = ",,gdbm"
108PACKAGECONFIG[lto] = "--with-lto,," 106PACKAGECONFIG[lto] = "--with-lto,--without-lto"
109 107
110do_configure:prepend () { 108do_configure:prepend () {
111 mkdir -p ${B}/Modules 109 mkdir -p ${B}/Modules