]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 19 Jun 2023 16:23:31 +0000 (06:23 -1000)
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>
(cherry picked from commit db743cc78fe5172bb4a4dac9c1dad4f5aa9e1491)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/uninative.bbclass

index 4412d7c567c5dc8d524f2f21e09b0f682bfe8ade..2940935dd74410e50920a03b617a8612c1201e60 100644 (file)
@@ -34,6 +34,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