Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] Fetch uninative binaries before recipe are parsed so that the datastore variables are updated and recipes parsed accordingly.
@ 2018-03-13 14:47 Cuero Bugot
  2018-03-13 15:02 ` ✗ patchtest: failure for " Patchwork
  0 siblings, 1 reply; 2+ messages in thread
From: Cuero Bugot @ 2018-03-13 14:47 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

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@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-13 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-13 14:47 [PATCH] Fetch uninative binaries before recipe are parsed so that the datastore variables are updated and recipes parsed accordingly Cuero Bugot
2018-03-13 15:02 ` ✗ patchtest: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox