Skip to content

Commit 602d717

Browse files
committed
qemu_multiarch_testing/*: make it easier to do debug in sandboxes
Signed-off-by: Denys Vlasenko <[email protected]>
1 parent 430143b commit 602d717

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

qemu_multiarch_testing/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ And these did not:
3939
system-image-m68k - qemu-system-m68k: -M q800: Unsupported machine type
4040
system-image-mips64 - init dies before reaching /mnt/init
4141
system-image-sh4 - hdc does not mount (no support for 2 disks)
42+
43+
44+
To debug a build problem in one of sandboxes, change keep_hdb
45+
to "keep_hdb=true" in parallel-build-hdc-img.sh
46+
47+
This preserves system-image-DIR1/hdb.img after the build,
48+
so you can go into system-image-DIR1 and run
49+
"HDB=hdb.img ./dev-environment.sh" to debug the problem.

qemu_multiarch_testing/parallel-build-hdc-img.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/sh
22

33
export HDBMEGS=64
4+
keep_hdb=false
45

56
build_in_dir()
67
{
78
cd "$1" || exit 1
89
rm -f hdb.img
910
nice -n10 time ./native-build.sh ../hdc.img
10-
rm -f hdb.img
11+
$keep_hdb || rm -f hdb.img
1112
echo >&3 "Finished: $1"
1213
}
1314

0 commit comments

Comments
 (0)