summaryrefslogtreecommitdiff
path: root/target/riscv64/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-02-05 02:58:59 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-02-07 16:41:33 +0100
commit38ae283cb4f6385dca56aa6c0baf5dbdd83cd1bc (patch)
tree4d052f32ca7783032b4d90a75fc3aa3319b91908 /target/riscv64/Makefile
parent18bbaad5530dea70a8495b788c4b308d66921561 (diff)
riscv: use default BIOS included in qemu
Diffstat (limited to 'target/riscv64/Makefile')
-rw-r--r--target/riscv64/Makefile20
1 files changed, 5 insertions, 15 deletions
diff --git a/target/riscv64/Makefile b/target/riscv64/Makefile
index c2b50a688..44dd98351 100644
--- a/target/riscv64/Makefile
+++ b/target/riscv64/Makefile
@@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/arch/riscv/boot/Image
-QEMU_ARGS:=-M virt -m 512 -nographic -bios $(FW_DIR)/fw_jump.elf
+QEMU_ARGS:=-M virt -m 512 -nographic
ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y)
QEMU_ARGS+=-netdev user,id=eth0 -device virtio-net-device,netdev=eth0
endif
@@ -53,26 +53,16 @@ kernel-strip:
kernel-install: kernel-strip
-boot:
- @rm -rf $(BUILD_DIR)/opensbi
- (cd $(BUILD_DIR)/ && git clone https://github.com/riscv/opensbi.git)
- (cd $(BUILD_DIR)/opensbi && PATH='$(HOST_PATH)' \
- CROSS_COMPILE=$(GNU_TARGET_NAME)- \
- FW_PAYLOAD_PATH=$(KERNEL) \
- PLATFORM=generic make)
- cp $(BUILD_DIR)/opensbi/build/platform/generic/firmware/fw_jump.elf \
- $(FW_DIR)
-
# filesystem specific targets
ifeq ($(ADK_TARGET_FS),archive)
-imageinstall: kernel-install boot $(FW_DIR)/$(ROOTFSTARBALL) targethelp
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSTARBALL) targethelp
endif
ifeq ($(ADK_TARGET_FS),initramfs)
-imageinstall: kernel-install boot $(FW_DIR)/$(INITRAMFS) targethelp
+imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
endif
ifeq ($(ADK_TARGET_FS),initramfsarchive)
-imageinstall: kernel-install boot $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
endif
ifeq ($(ADK_TARGET_FS),initramfspiggyback)
-imageinstall: createinitramfs boot targethelp
+imageinstall: createinitramfs targethelp
endif