mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 09:16:36 +01:00
python-native: don't cause a full regeneration of the built sources
When cross-compiling Python 2 you need a native pgen binary, but the cross recipe can't do this on it's own so we build it in python-native and install it. The rule to build pgen was also causing a complete rebuild of all of the generated sources, which meant that building Python 2 needs a *host* Python 2. This can be fixed by simply building pgen, as this is all we need to install. [ YOCTO #13645 ] (From OE-Core rev: 04f7e28963b413b88724c80f67787b440793570e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
16a39715d9
commit
f59e9cc356
@@ -35,10 +35,9 @@ do_configure_append() {
|
||||
autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi
|
||||
}
|
||||
|
||||
# Regenerate all of the generated files
|
||||
# This ensures that pgen and friends get created during the compile phase
|
||||
do_compile_prepend() {
|
||||
oe_runmake regen-all
|
||||
# Cross-compiling Python needs a native pgen, build it here for use later.
|
||||
do_compile_append() {
|
||||
oe_runmake Parser/pgen
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
||||
Reference in New Issue
Block a user