aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-08-31 13:17:44 -0700
committerChristian Cunningham <cc@localhost>2021-08-31 13:17:44 -0700
commit33f202b3388f45ba36dacce562a36de6bb67037d (patch)
tree7ce5f42bf1ff6eacec59dc62cbeb415f72a8a2c1
parentce9600cd402da02e63f424547886e9d554cd1f40 (diff)
Created QFLAGS for QEMU
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ae25aa6..ac280b3 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ QEMU = qemu-system-arm
GDB = gdb-multiarch
CFLAGS = -mcpu=cortex-a7 -fpic -ffreestanding -std=gnu99 -O2 -Wall -Wextra -nostdlib -g
AFLAGS = -mcpu=cortex-a7
+QFLAGS = -M raspi2 -cpu arm1176 -m 1G -serial mon:stdio -nographic
.PHONY: clean run run-debug debug export
@@ -37,15 +38,14 @@ export: build/kernel.list
obj/%.o: src/%.S
${AS} ${AFLAGS} -g -c $< -o $@
-clean:
- rm -f obj/*.o build/*.elf build/*.list build/*.img
-
run: build/kernel.elf
- ${QEMU} -M raspi2 -kernel $< -m 1G -serial mon:stdio
+ ${QEMU} -kernel $< ${QFLAGS}
run-debug: build/kernel-g.elf
- ${QEMU} -M raspi2 -cpu arm1176 -kernel $< -m 1G -s -S -serial mon:stdio -nographic
+ ${QEMU} -kernel $< -s -S ${QFLAGS}
debug: build/kernel-g.elf build/kernel.list
${GDB} $< -command=gdbinit
+clean:
+ rm -f obj/*.o build/*.elf build/*.list build/*.img