mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ce6add6f8a
commit
ee2f28c91a
@@ -95,9 +95,7 @@ CACHED_CONFIGUREVARS = " \
|
|||||||
"
|
"
|
||||||
|
|
||||||
# PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407
|
# PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407
|
||||||
PACKAGECONFIG:class-target ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
|
PACKAGECONFIG ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
|
||||||
PACKAGECONFIG:class-native ??= "editline gdbm"
|
|
||||||
PACKAGECONFIG:class-nativesdk ??= "readline gdbm"
|
|
||||||
PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline"
|
PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline"
|
||||||
PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline"
|
PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline"
|
||||||
# Use profile guided optimisation by running PyBench inside qemu-user
|
# Use profile guided optimisation by running PyBench inside qemu-user
|
||||||
@@ -105,7 +103,7 @@ PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native"
|
|||||||
PACKAGECONFIG[tk] = ",,tk"
|
PACKAGECONFIG[tk] = ",,tk"
|
||||||
PACKAGECONFIG[tcl] = ",,tcl"
|
PACKAGECONFIG[tcl] = ",,tcl"
|
||||||
PACKAGECONFIG[gdbm] = ",,gdbm"
|
PACKAGECONFIG[gdbm] = ",,gdbm"
|
||||||
PACKAGECONFIG[lto] = "--with-lto,,"
|
PACKAGECONFIG[lto] = "--with-lto,--without-lto"
|
||||||
|
|
||||||
do_configure:prepend () {
|
do_configure:prepend () {
|
||||||
mkdir -p ${B}/Modules
|
mkdir -p ${B}/Modules
|
||||||
|
|||||||
Reference in New Issue
Block a user