Add non-docker QEMU

This commit is contained in:
Berkus Decker 2019-01-18 17:05:53 +02:00
parent 1dc4e2483a
commit 32753f47bf
1 changed files with 8 additions and 1 deletions

View File

@ -34,6 +34,10 @@ UTILS_CONTAINER = andrerichter/raspi3-utils
DOCKER_CMD = docker run -it --rm -v $(shell pwd):/work -w /work
QEMU_CMD = qemu-system-aarch64 -M raspi3 -kernel kernel8.img
# -d in_asm,unimp,int -S
QEMU_OPTS = -M raspi3 -d in_asm,int -serial null -serial stdio
QEMU = /usr/local/Cellar/qemu/HEAD-3365de01b5-custom/bin/qemu-system-aarch64
.PHONY: all qemu clippy clean objdump nm
all: clean kernel8.img
@ -45,9 +49,12 @@ kernel8.img: target/$(TARGET)/release/vesper
cp $< ./kernel8
$(OBJCOPY) $(OBJCOPY_PARAMS) $< kernel8.img
qemu: all
docker_qemu: all
$(DOCKER_CMD) $(UTILS_CONTAINER) $(QEMU_CMD) -d in_asm
qemu: all
$(QEMU) $(QEMU_OPTS) -kernel kernel8.img
clippy:
cargo xclippy --target=$(TARGET_JSON)