[oe-commits] [openembedded-core] 17/17: python-native: don't cause a full regeneration of the built sources

git at git.openembedded.org git at git.openembedded.org
Wed Nov 27 13:25:58 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 04f7e28963b413b88724c80f67787b440793570e
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Nov 25 18:22:21 2019 +0100

    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 ]
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/python/python-native_2.7.17.bb | 7 +++----
 1 file 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 936810d..98805d9 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() {
 	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() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list