[oe-commits] [openembedded-core] 03/56: base: Handle backfilling in anonymous python code, not event handler

git at git.openembedded.org git at git.openembedded.org
Sat Mar 3 09:13:28 UTC 2018


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

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

commit 5659c1e19ba0fc7701613d9a0681e53f34ec04d8
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Mar 2 18:17:40 2018 +0000

    base: Handle backfilling in anonymous python code, not event handler
    
    Handling of backfilling is trickier than you'd think. We need this to execute
    early enough that the user will see the changes in bitbake -e and other output
    yet late enough that the virtclass extensions have changed the tunes before
    it executes.
    
    It makes more sense to execute this at anonymous python time now bitbake -e
    correctly handles this and that unbreaks multilib corruption of these variables.
    
    [YOCTO #12373]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/base.bbclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index b0a72c7..e0b76f0 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -222,8 +222,6 @@ python base_eventhandler() {
         if not d.getVar("NATIVELSBSTRING", False):
             d.setVar("NATIVELSBSTRING", lsb_distro_identifier(d))
         d.setVar('BB_VERSION', bb.__version__)
-        oe.utils.features_backfill("DISTRO_FEATURES", d)
-        oe.utils.features_backfill("MACHINE_FEATURES", d)
         # Works with the line in layer.conf which changes PATH to point here
         setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS', d)
         setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS_NONFATAL', d, fatal=False)
@@ -382,6 +380,10 @@ def set_packagetriplet(d):
 python () {
     import string, re
 
+    # Handle backfilling
+    oe.utils.features_backfill("DISTRO_FEATURES", d)
+    oe.utils.features_backfill("MACHINE_FEATURES", d)
+
     # Handle PACKAGECONFIG
     #
     # These take the form:

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


More information about the Openembedded-commits mailing list