]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
uninative: Ensure uninative is enabled in all cases for BuildStarted event
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Jan 2023 16:00:18 +0000 (16:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Jan 2023 10:57:41 +0000 (10:57 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/uninative.bbclass

index 42c5f8fdf2e6d13ac202bc6046f9d86bbbea88db..366f7ac7935db9f7751fac96096576f86a9b59e9 100644 (file)
@@ -40,6 +40,8 @@ python uninative_event_fetchloader() {
         with open(loaderchksum, "r") as f:
             readchksum = f.read().strip()
         if readchksum == chksum:
+            if "uninative" not in d.getVar("SSTATEPOSTUNPACKFUNCS"):
+                enable_uninative(d)
             return
 
     import subprocess