summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-11-25 18:22:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-27 13:25:18 +0000
commitf59e9cc356d97fca325b064193e63cd683da2438 (patch)
treea4e8a0e4b17d5cb96d3648069d451f499e41d1df /meta/recipes-devtools
parent16a39715d9d07cf847d433f5a3c14c7374ea5a6e (diff)
downloadpoky-f59e9cc356d97fca325b064193e63cd683da2438.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python-native_2.7.17.bb7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python-native_2.7.17.bb b/meta/recipes-devtools/python/python-native_2.7.17.bb
index 936810d980..98805d998d 100644
--- a/meta/recipes-devtools/python/python-native_2.7.17.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.17.bb
@@ -35,10 +35,9 @@ do_configure_append() {
35 autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi 35 autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi
36} 36}
37 37
38# Regenerate all of the generated files 38# Cross-compiling Python needs a native pgen, build it here for use later.
39# This ensures that pgen and friends get created during the compile phase 39do_compile_append() {
40do_compile_prepend() { 40 oe_runmake Parser/pgen
41 oe_runmake regen-all
42} 41}
43 42
44do_install() { 43do_install() {