exec_kernel.sh (774B)
1 # test/lib/exec_kernel.sh — thin compatibility shim over exec_bare.sh. 2 # 3 # The per-arch bare-metal scaffolding (reset stubs, linker scripts, exit 4 # oracles, qemu-system invocations) now lives in test/lib/exec_bare.sh, the 5 # single owner. This shim preserves the historical exec_kernel_* API used by 6 # test/link/run.sh's kernel_image cases, which build a complete bootable image 7 # themselves and want a synchronous run returning RUN_RC. 8 # 9 # exec_kernel_supported <arch> true if qemu-system-<arch> is present 10 # exec_kernel_run <arch> <exe> <out> <err> run the ready image; sets RUN_RC 11 12 . "$(dirname "${BASH_SOURCE[0]}")/exec_bare.sh" 13 14 exec_kernel_supported() { exec_bare_supported "$1"; } 15 exec_kernel_run() { exec_bare_run_image "$1" "$2" "$3" "$4"; }