summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2021-03-05 18:10:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-14 16:33:59 +0000
commitf00dfafbaf7e5656971c17e944fa4574047ba526 (patch)
tree95e397f739db991f3ac1dca8f3bb13eae8e49d31 /meta/classes/populate_sdk_ext.bbclass
parentd34234c6e17a577383138e1f4c489411133a3b4b (diff)
downloadpoky-f00dfafbaf7e5656971c17e944fa4574047ba526.tar.gz
populate_sdk_ext: record METADATA_REVISION
As we delete the .git/ directory, it's impossible to get METADATA_REVISION inside eSDK. Because of this, we meet the following warning when installing eSDK. WARNING: The base-files:do_install sig is computed to be 16b9d96148d45de183cc94667aae016ec7d102d48255456381e718cd4bbd0aa0, \ but the sig is locked to 6eb0dcaed504282becee94662481d79264db920dee1f7deda18230133fff8f36 in SIGGEN_LOCKEDSIGS_t-qemux86-64 So we record METADATA_REVISION in eSDK generation time to fix this problem. (From OE-Core rev: ff2ad51b801fd62e2abbc573ba2c9ee8fdc7e012) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index e6bf27cf38..9112ab6c5e 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -364,6 +364,9 @@ python copy_buildsystem () {
364 # Hide the config information from bitbake output (since it's fixed within the SDK) 364 # Hide the config information from bitbake output (since it's fixed within the SDK)
365 f.write('BUILDCFG_HEADER = ""\n\n') 365 f.write('BUILDCFG_HEADER = ""\n\n')
366 366
367 # Write METADATA_REVISION
368 f.write('METADATA_REVISION = "%s"\n\n' % d.getVar('METADATA_REVISION'))
369
367 f.write('# Provide a flag to indicate we are in the EXT_SDK Context\n') 370 f.write('# Provide a flag to indicate we are in the EXT_SDK Context\n')
368 f.write('WITHIN_EXT_SDK = "1"\n\n') 371 f.write('WITHIN_EXT_SDK = "1"\n\n')
369 372