summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2020-06-26 04:26:03 +0300
committerAnup Patel <anup@brainfault.org>2020-06-29 06:47:24 +0300
commit78afe11ba2e7585d48ac4e3c38b71906c83cbe6c (patch)
tree8930fc3d518e38c893ae1f130929fbfd062d9983 /platform
parent35bc810252f4e45beab3b66e30ffe4502e91f22c (diff)
downloadopensbi-78afe11ba2e7585d48ac4e3c38b71906c83cbe6c.tar.xz
config.mk: Update QEMU run command for generic and sifive fu540 platforms
Since QEMU v5.1, if there is no "-bios" option provided, the default OpenSBI firmware will be loaded by QEMU as the BIOS automatically, hence to load fw_payload type image, we should explicitly pass the "-bios" option to QEMU. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/generic/config.mk2
-rw-r--r--platform/sifive/fu540/config.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/generic/config.mk b/platform/generic/config.mk
index 8d63ece..8151974 100644
--- a/platform/generic/config.mk
+++ b/platform/generic/config.mk
@@ -15,7 +15,7 @@ platform-ldflags-y =
# Command for platform specific "make run"
platform-runcmd = qemu-system-riscv$(PLATFORM_RISCV_XLEN) -M virt -m 256M \
- -nographic -kernel $(build_dir)/platform/generic/firmware/fw_payload.elf
+ -nographic -bios $(build_dir)/platform/generic/firmware/fw_payload.elf
# Blobs to build
FW_TEXT_START=0x80000000
diff --git a/platform/sifive/fu540/config.mk b/platform/sifive/fu540/config.mk
index e76adcd..23169b1 100644
--- a/platform/sifive/fu540/config.mk
+++ b/platform/sifive/fu540/config.mk
@@ -15,7 +15,7 @@ platform-ldflags-y =
# Command for platform specific "make run"
platform-runcmd = qemu-system-riscv$(PLATFORM_RISCV_XLEN) -M sifive_u -m 256M \
- -nographic -kernel $(build_dir)/platform/sifive/fu540/firmware/fw_payload.elf
+ -nographic -bios $(build_dir)/platform/sifive/fu540/firmware/fw_payload.elf
# Blobs to build
FW_TEXT_START=0x80000000