platform: sifive: fu540: Add platform specific 'make run' cmd
authorBin Meng <bmeng.cn@gmail.com>
Thu, 6 Feb 2020 12:15:21 +0000 (04:15 -0800)
committerAnup Patel <anup@brainfault.org>
Fri, 7 Feb 2020 10:50:34 +0000 (16:20 +0530)
This adds sifive/fu540 specific QEMU run command.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
platform/sifive/fu540/config.mk

index 84b0987..ad099cc 100644 (file)
@@ -13,6 +13,10 @@ platform-cflags-y =
 platform-asflags-y =
 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
+
 # Blobs to build
 FW_TEXT_START=0x80000000
 FW_DYNAMIC=y