Skip to content

Commit

Permalink
make qemu supports non-Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Mar 2, 2021
1 parent 4e9258a commit 7930fca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
.PHONY: qemu

QEMU_ACCEL := tcg
ifeq ($OS),Windows NT)
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
QEMU_ACCEL := hvf
endif
endif

QEMU_CMD = qemu-system-aarch64 \
-dtb dtb/qemu.dtb \
-accel hvf \
-accel $(QEMU_ACCEL) \
-m 512 \
-cpu cortex-a53 -M virt,highmem=off \
-bios roms/u-boot-arm64-ramfb.bin \
Expand Down

0 comments on commit 7930fca

Please sign in to comment.