summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/uninative.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-10 16:00:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-11 10:58:36 +0000
commit8e7e050bce75008cf91fc3d13be72be730f71c7b (patch)
treef2c5d44642d8d7b060c587a689d630d4f9e738ff /meta/classes-global/uninative.bbclass
parent165e8b563d400bf54c317659a267db85e8c34006 (diff)
downloadpoky-8e7e050bce75008cf91fc3d13be72be730f71c7b.tar.gz
uninative: Ensure uninative is enabled in all cases for BuildStarted event
Recent changes in bitbake mean the datastore is not always reset between ConfigParsed and BuildStarted. This means in a fresh buiild, with memory resident bitbake active, uninative may end up disabled. Update the code so the enable code is always run at BuildStarted if needed. (From OE-Core rev: db743cc78fe5172bb4a4dac9c1dad4f5aa9e1491) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/uninative.bbclass')
-rw-r--r--meta/classes-global/uninative.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-global/uninative.bbclass b/meta/classes-global/uninative.bbclass
index 42c5f8fdf2..366f7ac793 100644
--- a/meta/classes-global/uninative.bbclass
+++ b/meta/classes-global/uninative.bbclass
@@ -40,6 +40,8 @@ python uninative_event_fetchloader() {
40 with open(loaderchksum, "r") as f: 40 with open(loaderchksum, "r") as f:
41 readchksum = f.read().strip() 41 readchksum = f.read().strip()
42 if readchksum == chksum: 42 if readchksum == chksum:
43 if "uninative" not in d.getVar("SSTATEPOSTUNPACKFUNCS"):
44 enable_uninative(d)
43 return 45 return
44 46
45 import subprocess 47 import subprocess