From 72d503eeed47e33bdb365e0e1b9783bc938c6f1e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 7 May 2025 16:32:19 +0200 Subject: Streamline configuration for run-riscv-qemu.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Personal stuff like the location of the kernel image should go into my .bashrc file, and then require it on `run-riscv-qemu.sh`. Similarly, some environment variables were dropped, and some others removed. This brings some much needed consistency to the whole script. Last but not least, the `run-riscv-qemu.sh` now also had an extra configurable variable, which is used for the `-cpu` QEMU option. It defaults to 'max' so we can test the maximum amount of supported extensions as possible. Signed-off-by: Miquel Sabaté Solà --- .bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index eb97270..fc1daa1 100644 --- a/.bashrc +++ b/.bashrc @@ -168,9 +168,10 @@ if [ "$(uname -m)" != "riscv64" ]; then export CROSS_COMPILE=riscv64-suse-linux- fi -# I have built a local busybox so I can generate an initramfs for various -# hacking thingies, let's reference it into an environment variable. +# Local builds for busybox and the Linux kernel. Needed by scripts like +# `bin/run-riscv-qemu.sh`. export BUSYBOX_SRC="$HOME/src/busybox/1.36.1" +export QEMU_KERNEL="$HOME/src/git.kernel.org/linux/kernel/riscv/arch/riscv/boot/Image" ## # Lastly I had some problems with the GPG agent recently. So I copied a solution -- cgit v1.2.3