summaryrefslogtreecommitdiff
path: root/build-common/packages
diff options
context:
space:
mode:
authorKieran Bingham <kieran@bingham.xyz>2016-02-24 11:56:53 +0000
committerKieran Bingham <kieran@bingham.xyz>2016-02-24 11:56:53 +0000
commit9c61415a5f6503ef5ae8dcab8934ed9dafcd901f (patch)
treeb9eaebbebd887d78cb1a40213b00924348c28c32 /build-common/packages
parent859b92cb9a17dc7f98a28ac3e4122f96cdf27d7e (diff)
Packages/Qemu: Add qemu-system-aarch64 run target
Diffstat (limited to 'build-common/packages')
-rw-r--r--build-common/packages/qemu14
1 files changed, 14 insertions, 0 deletions
diff --git a/build-common/packages/qemu b/build-common/packages/qemu
index 5861fdd..91f8c1a 100644
--- a/build-common/packages/qemu
+++ b/build-common/packages/qemu
@@ -49,6 +49,20 @@ qemu_halted: qemu-system-arm
# -sd vexpress-1G.img \
ARMGDB?=arm-none-eabi-gdb \
+qemu-system-aarch64:
+ echo $(QEMU_GDBSERVER_PORT) > $(QEMU_GDBSERVER_PORT_FILE)
+ $@ \
+ -kernel $(LINUX_BUILD)/arch/arm64/boot/Image \
+ -M virt \
+ -cpu cortex-a57 \
+ -machine type=virt \
+ -smp $(QEMU_CORES) \
+ -m 1024 \
+ -append 'root=/dev/nfs nfsroot=$(QEMU_NFSROOT) rw ip=dhcp mem=1024M raid=noautodetect rootwait console=ttyAMA0,38400n8 devtmpfs.mount=0' \
+ -nographic \
+ $(QEMU_HALT) \
+ -gdb tcp::$(QEMU_GDBSERVER_PORT)
+
qemu-gdb:
# Link the Kernel VMLinux locally for python lx-symbols
ln -f -s $(LINUX_BUILD)/vmlinux