summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-09-07 12:51:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-09 12:04:06 +0100
commit38d7a2e45b883cf999a86af05bcc0eaa875bb47c (patch)
tree5e94fbb67e223e8b50a7a24302e1f7af0ddd4a31 /meta/files
parentacd85925cb197b7a31a25b60e8de762e2c3697ef (diff)
downloadopenembedded-core-contrib-38d7a2e45b883cf999a86af05bcc0eaa875bb47c.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 Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'meta/files')
-rw-r--r--meta/files/ext-sdk-prepare.py2
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():
ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets))
if not ret:
- ret = run_command_interruptible('bitbake --quiet build-sysroots')
+ ret = run_command_interruptible('bitbake --quiet build-sysroots -c build_native_sysroot && bitbake --quiet build-sysroots -c build_target_sysroot')
lastlog = get_last_consolelog()
if lastlog:
with open(lastlog, 'r') as f: