diff mbox series

files/ext-sdk-prepare: Ensure all dependencies extract correctly

Message ID 20260824144324.3200581-1-richard.purdie@linuxfoundation.org
State Under Review
Headers show
Series files/ext-sdk-prepare: Ensure all dependencies extract correctly | expand

Commit Message

Richard Purdie Aug. 24, 2026, 2:43 p.m. UTC
If you have a "full" eSDK and extract it, recipes can be masked from extraction
since they are not needed at runtime. An example is maturin-native, for which
populate_sysroot doesn't run in a core-image-sato image.

Fix this by ensuring all do_build tasks for the targets run. This allows
the maturin eSDK test to work correctly on full eSDK builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/files/ext-sdk-prepare.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py
index 89b04030899..ed03b77ae62 100644
--- a/meta/files/ext-sdk-prepare.py
+++ b/meta/files/ext-sdk-prepare.py
@@ -69,7 +69,7 @@  def main():
     with open(logfile, 'a') as logf:
         logf.write('Preparing SDK for %s...\n' % ', '.join(sdk_targets))
 
-        ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets))
+        ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet --runall do_build %s' % ' '.join(sdk_targets))
         if not ret:
             ret = run_command_interruptible('bitbake --quiet build-sysroots -c build_native_sysroot && bitbake --quiet build-sysroots -c build_target_sysroot')
         lastlog = get_last_consolelog()