Skip to content

Commit 70f168a

Browse files
authored
[Tizen] Pass runner's path as QEMU argument (project-chip#36173)
* Allow runner's path to be passed * Bump version
1 parent 736ed63 commit 70f168a

File tree

2 files changed

+7
-3
lines changed
  • integrations/docker/images

2 files changed

+7
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
85 : [Silabs] Update Silabs docker Simplicity SDK v2024.6.2
1+
86 : [Tizen] Pass runner's path as QEMU argument

integrations/docker/images/stage-3/chip-build-tizen-qemu/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,13 @@ RUN set -x \
182182
&& echo -n \
183183
"#!/bin/bash\n" \
184184
"grep -q 'rootshell' /proc/cmdline && exit\n" \
185-
"if [[ -x /mnt/chip/runner.sh ]]; then\n" \
185+
"runner=\$(grep -o 'runner=[^ ]*' /proc/cmdline | sed 's/runner=//')\n" \
186+
"if [[ -z \"\$runner\" ]]; then\n" \
187+
" runner='/mnt/chip/runner.sh' \n" \
188+
"fi\n" \
189+
"if [[ -x \"\$runner\" ]]; then\n" \
186190
" echo '### RUNNER START ###'\n" \
187-
" /mnt/chip/runner.sh\n" \
191+
" \"\$runner\"\n" \
188192
" echo '### RUNNER STOP:' \$?\n" \
189193
"else\n" \
190194
" read -r -t 5 -p 'Press ENTER to access root shell...' && exit || echo ' timeout.'\n" \

0 commit comments

Comments
 (0)