Make aarch64 and mipsel use img instead of qcow

Signed-off-by: Harry Chen <i@harrychen.xyz>
master
Harry Chen 6 years ago
parent 9a9e8048cb
commit 6cc607e0c8

@ -51,11 +51,16 @@ user_dir := ../user
### export environments ###
ifeq ($(arch), $(filter $(arch), aarch64 mipsel))
#link user img, so use original image
export SFSIMG = $(user_dir)/build/$(arch).img
else
export SFSIMG = $(user_dir)/build/$(arch).qcow2
endif
ifeq ($(arch), aarch64)
board := raspi3
export SFSIMG = $(user_dir)/build/$(arch).img
endif
# currently only mipsel architecture needs DTB linked to the kernel
@ -294,7 +299,6 @@ else ifeq ($(arch), aarch64)
@$(objcopy) $(bootloader) --strip-all -O binary $@
else ifeq ($(arch), mipsel)
# qemu-system-mipsel accepts ELF file only, so don't use objcopy
@cp $(kernel) $(kernel)_orig
@$(strip) $(kernel) -o $@
endif

Loading…
Cancel
Save