summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-10-18 11:47:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-25 13:42:02 +0100
commit7e4b96e911f6b308aa1c970db37881d62ddefcac (patch)
treeeeac5a145f974c43eb599ed892c33bafc4cd6b39
parent4fd15f4e3ad50ba1830b20a5e339d75ebb74a4ce (diff)
downloadpoky-7e4b96e911f6b308aa1c970db37881d62ddefcac.tar.gz
scripts/oe-check-sstate: force build to run for all targets, specifically populate_sysroot
Since the commit "populate_sdk_base/images: Drop use of 'meta' class and hence do_build dependencies"[1], builds of images or SDKs don't recursively depend on the top-level do_build target. This is typically a good thing: images just depend on the packages themselves and those dependencies already exist, but they don't need each recipes sysroot to be populated. However, eSDK generation is partly done via the script oe-check-sstate, which does a 'dry-run' build of the target and collates all of the sstate that is used. With this commit the sstate that is used is a fraction of what would be needed in the SDK, specifically there are no sysroots populated during the build, so there are no sysroots in the SDK. This is obviously a problem, as the entire point of an eSDK is to contain a sysroot. Resolve this problem by forcing bitbake to run the build task for all targets, so that all potentially needed sstate is collated. [YOCTO #14626] [1] https://github.com/openembedded/openembedded-core/commit/41d7f1aa2cc9ef5dba4db38435402d4c9c0a63e1 Tested-by: Andrej Valek <andrej.valek@siemens.com> (From OE-Core rev: 1b62344f919b5122f048b6409d09386d7d6dd3cd) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-check-sstate2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-check-sstate b/scripts/oe-check-sstate
index 7f9f835da4..4187e77458 100755
--- a/scripts/oe-check-sstate
+++ b/scripts/oe-check-sstate
@@ -50,7 +50,7 @@ def check(args):
50 env['TMPDIR:forcevariable'] = tmpdir 50 env['TMPDIR:forcevariable'] = tmpdir
51 51
52 try: 52 try:
53 cmd = ['bitbake', '--dry-run'] + args.target 53 cmd = ['bitbake', '--dry-run', '--runall=build'] + args.target
54 output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env) 54 output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env)
55 55
56 task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)') 56 task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')