From ab683cc638ce8d9a233aad10f28aa6ac441dd562 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 24 Oct 2025 12:01:38 +0200 Subject: run-riscv-qemu: move to KERNEL in error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 295231706308 ("bin: Guess the QEMU_KERNEL to be used based on cwd") introduced QEMU_KERNEL into this script, but actually we have moved to KERNEL instead. Hence, use that as well in error messages. Signed-off-by: Miquel Sabaté Solà --- bin/run-riscv-qemu.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/run-riscv-qemu.sh b/bin/run-riscv-qemu.sh index 77bf808..bdcb2b5 100755 --- a/bin/run-riscv-qemu.sh +++ b/bin/run-riscv-qemu.sh @@ -72,15 +72,15 @@ if [ -z "$KERNEL" ]; then if [ -f "arch/$ARCH/boot/Image" ]; then KERNEL=$(realpath "arch/$ARCH/boot/Image") else - echo "run-riscv-qemu (error): you need to define QEMU_KERNEL with the Image to be used." + echo "run-riscv-qemu (error): you need to define '-k/--kernel'." exit 1 fi - echo "run-riscv-qemu (info): using '$QEMU_KERNEL' as the Linux kernel Image." else - echo "run-riscv-qemu (error): you need to define QEMU_KERNEL with the Image to be used." + echo "run-riscv-qemu (error): you need to define '-k/--kernel'." exit 1 fi fi +echo "run-riscv-qemu (info): using '\$KERNEL' as the Linux kernel Image." ## # If the user provided a disk option, run QEMU with that disk in mind. @@ -112,6 +112,7 @@ fi # Cleanup older environments. rm -rf "$BUSYBOX_SRC/initramfs/home" +mkdir -p "$BUSYBOX_SRC/initramfs/home" pushd "$BUSYBOX_SRC/initramfs" find . -print0 | cpio --null -o --format=newc | gzip -9 >../initramfs.cpio.gz -- cgit v1.2.3