diff options
| author | Ross Burton <ross.burton@arm.com> | 2023-05-05 14:21:43 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-09 07:50:14 +0100 |
| commit | ee2f28c91a33e37de954d78eb3bde7ae1c0a89c5 (patch) | |
| tree | 2850cdfb7ce0d19fa259bc7a933fb88769603125 /meta/recipes-devtools | |
| parent | ce6add6f8aca03a8243f5569c5536181352f47bc (diff) | |
| download | poky-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.bb | 6 |
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 |
| 98 | PACKAGECONFIG:class-target ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" | 98 | PACKAGECONFIG ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" |
| 99 | PACKAGECONFIG:class-native ??= "editline gdbm" | ||
| 100 | PACKAGECONFIG:class-nativesdk ??= "readline gdbm" | ||
| 101 | PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline" | 99 | PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline" |
| 102 | PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline" | 100 | PACKAGECONFIG[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" | |||
| 105 | PACKAGECONFIG[tk] = ",,tk" | 103 | PACKAGECONFIG[tk] = ",,tk" |
| 106 | PACKAGECONFIG[tcl] = ",,tcl" | 104 | PACKAGECONFIG[tcl] = ",,tcl" |
| 107 | PACKAGECONFIG[gdbm] = ",,gdbm" | 105 | PACKAGECONFIG[gdbm] = ",,gdbm" |
| 108 | PACKAGECONFIG[lto] = "--with-lto,," | 106 | PACKAGECONFIG[lto] = "--with-lto,--without-lto" |
| 109 | 107 | ||
| 110 | do_configure:prepend () { | 108 | do_configure:prepend () { |
| 111 | mkdir -p ${B}/Modules | 109 | mkdir -p ${B}/Modules |
