diff options
author | Ross Burton <ross.burton@intel.com> | 2019-11-25 18:22:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-27 13:25:18 +0000 |
commit | f59e9cc356d97fca325b064193e63cd683da2438 (patch) | |
tree | a4e8a0e4b17d5cb96d3648069d451f499e41d1df /meta/recipes-devtools | |
parent | 16a39715d9d07cf847d433f5a3c14c7374ea5a6e (diff) | |
download | poky-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.bb | 7 |
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 | 39 | do_compile_append() { |
40 | do_compile_prepend() { | 40 | oe_runmake Parser/pgen |
41 | oe_runmake regen-all | ||
42 | } | 41 | } |
43 | 42 | ||
44 | do_install() { | 43 | do_install() { |