diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-04-11 11:03:46 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-13 13:53:44 +0100 |
commit | 493e0eae7f3125c340b920305f0ecaff41019384 (patch) | |
tree | d390ca586b1bc3cdaab1a7aa28a89446b84ed7fc /meta/classes-recipe/populate_sdk_ext.bbclass | |
parent | fa564128068dd939b68e76319692f28b38734691 (diff) | |
download | poky-493e0eae7f3125c340b920305f0ecaff41019384.tar.gz |
populate_sdk_ext.bbclass: set METADATA_REVISION with an DISTRO override
* otherwise it ends '<unknown>' inside esdk, because of parsing order:
# $METADATA_REVISION [3 operations]
# set /OE/build/test-D/conf/local.conf:43
# "f2da54ef432eac89b0f18eaad68e602b6990b5de"
# immediate /OE/build/test-D/layers/poky/meta/classes/metadata_scm.bbclass:9
# "${@oe.buildcfg.detect_revision(d)}"
# set /OE/build/test-D/layers/poky/meta/classes/metadata_scm.bbclass:10
# [vardepvalue] "${METADATA_REVISION}"
# pre-expansion value:
# "<unknown>"
METADATA_REVISION="<unknown>"
* This causes base-files.do_install and following tasks to have different
signatures between esdk and the build directory where this esdk was created:
bitbake-diffsigs {test-D,poky/build-uninative-disabled}/tmp/stamps/qemux86_64-poky-linux/base-files/*do_install*sigdata*
NOTE: Starting bitbake server...
basehash changed from 5b6981cf58bfd57d416b0e31611b73a26baae635dd1ac31c08d46f95064c3ffc to dbdce042da4d7813d632b6d1cc87a16f728ad20e55fecbc392830e6acf72babd
Variable METADATA_REVISION value changed from '<unknown>' to 'f2da54ef432eac89b0f18eaad68e602b6990b5de'
and an warning from "python3 /OE/build/test-D/ext-sdk-prepare.py" when eSDK is being prepared for use:
WARNING: The base-files:do_install sig is computed to be 83b9c9a6ef1145baac5a1e0d08814b9156af239c58fc42df95c25a9cd8a7f201,
but the sig is locked to 3dc22233059075978e5503691e98e79e7cc60db94259dfcd886bca2291c0add7 in SIGGEN_LOCKEDSIGS_t-qemux86-64
[RP: Add commit about why we need the override for future reference]
(From OE-Core rev: 675ea7281c17f77bf5dea17cfd4d9da0928382a0)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/populate_sdk_ext.bbclass')
-rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index 2e6673bcd9..476876e03d 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
@@ -369,7 +369,8 @@ python copy_buildsystem () { | |||
369 | f.write('BUILDCFG_HEADER = ""\n\n') | 369 | f.write('BUILDCFG_HEADER = ""\n\n') |
370 | 370 | ||
371 | # Write METADATA_REVISION | 371 | # Write METADATA_REVISION |
372 | f.write('METADATA_REVISION = "%s"\n\n' % d.getVar('METADATA_REVISION')) | 372 | # Needs distro override so it can override the value set in the bbclass code (later than local.conf) |
373 | f.write('METADATA_REVISION:%s = "%s"\n\n' % (d.getVar('DISTRO'), d.getVar('METADATA_REVISION'))) | ||
373 | 374 | ||
374 | f.write('# Provide a flag to indicate we are in the EXT_SDK Context\n') | 375 | f.write('# Provide a flag to indicate we are in the EXT_SDK Context\n') |
375 | f.write('WITHIN_EXT_SDK = "1"\n\n') | 376 | f.write('WITHIN_EXT_SDK = "1"\n\n') |