[OE-core] [PATCH] Fetch uninative binaries before recipe are parsed so that the datastore variables are updated and recipes parsed accordingly.

Cuero Bugot cbugot at sierrawireless.com
Tue Mar 13 14:47:34 UTC 2018


Make sure uninative_event_fetchloader and uninative_event_enable are called at the same time on an early build event (bb.event.ConfigParsed).
This way the uninative binaries are fetched even before the recipe are parsed (the event is raised several time before the recipes are finally
parsed). And the uninative variables are set to the correct values for recipe parsing.
Note: it also saves a second complete parsing the second time you run bitbake.

Signed-off-by: Cuero Bugot <cbugot at sierrawireless.com>
---
 meta/classes/uninative.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 8f34483..5d4b277 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -9,7 +9,7 @@ UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.bz2"
 UNINATIVE_DLDIR ?= "${DL_DIR}/uninative/"
 
 addhandler uninative_event_fetchloader
-uninative_event_fetchloader[eventmask] = "bb.event.BuildStarted"
+uninative_event_fetchloader[eventmask] = "bb.event.ConfigParsed"
 
 addhandler uninative_event_enable
 uninative_event_enable[eventmask] = "bb.event.ConfigParsed"
-- 
2.7.4



More information about the Openembedded-core mailing list