diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-10 16:00:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-11 10:57:41 +0000 |
commit | db743cc78fe5172bb4a4dac9c1dad4f5aa9e1491 (patch) | |
tree | e7612b9cd2b875a42ba588de51cab69bf9eab930 /meta/classes-global | |
parent | cccd4bcaf381c2729adc000381bd89906003e72a (diff) | |
download | openembedded-core-db743cc78fe5172bb4a4dac9c1dad4f5aa9e1491.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-rw-r--r-- | meta/classes-global/uninative.bbclass | 2 |
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() { 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 |