diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-09-07 12:51:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-09 12:04:55 +0100 |
commit | 63e53fb8b60d38315015844bd3357fa1649cd639 (patch) | |
tree | 05f396b29b8c1c4f2ff0829c1f188fc1b4e3ee95 /meta/files | |
parent | 560a70a198c9a2a4efcbf077305af51ea259682c (diff) | |
download | poky-63e53fb8b60d38315015844bd3357fa1649cd639.tar.gz |
build-sysroots: target or native sysroot population need to be selected explicitly
Running them in parallel is prone to races as postinsts from target sysroots
rely on executables from native sysroots which may or may not be fully prepared
yet. This was observed for example here:
https://autobuilder.yoctoproject.org/typhoon/#/builders/146/builds/468/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/147/builds/467/steps/12/logs/stdio
(From OE-Core rev: 38d7a2e45b883cf999a86af05bcc0eaa875bb47c)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/ext-sdk-prepare.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py index d191e5e19c..89b0403089 100644 --- a/meta/files/ext-sdk-prepare.py +++ b/meta/files/ext-sdk-prepare.py | |||
@@ -71,7 +71,7 @@ def main(): | |||
71 | 71 | ||
72 | ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets)) | 72 | ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets)) |
73 | if not ret: | 73 | if not ret: |
74 | ret = run_command_interruptible('bitbake --quiet build-sysroots') | 74 | ret = run_command_interruptible('bitbake --quiet build-sysroots -c build_native_sysroot && bitbake --quiet build-sysroots -c build_target_sysroot') |
75 | lastlog = get_last_consolelog() | 75 | lastlog = get_last_consolelog() |
76 | if lastlog: | 76 | if lastlog: |
77 | with open(lastlog, 'r') as f: | 77 | with open(lastlog, 'r') as f: |