diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-09-01 22:47:48 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-09-01 22:48:16 +0200 |
commit | c5c6f661665450bb2a1f9e217fd5022cf7cbdfcd (patch) | |
tree | f1a8ce7031c92e157103518b83c96f64e2a87c22 /target/or1k/Makefile | |
parent | 77dcf4f883cd9ee840e7d431ed982fa982a60405 (diff) |
or1k: add basic qemu support
Kernel boots, userland not.
Diffstat (limited to 'target/or1k/Makefile')
-rw-r--r-- | target/or1k/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/or1k/Makefile b/target/or1k/Makefile index 8b3caa379..dc40475f7 100644 --- a/target/or1k/Makefile +++ b/target/or1k/Makefile @@ -7,12 +7,17 @@ include $(ADK_TOPDIR)/mk/image.mk KERNEL:=$(LINUX_DIR)/vmlinux OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id +QEMU_ARGS:=-nographic # target helper text ifeq ($(ADK_TARGET_FS),initramfs) targethelp: @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}' +ifeq ($(ADK_TARGET_QEMU),y) + @echo "Start qemu with following command line:" + @echo 'qemu-system-or32 ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}' +endif endif ifeq ($(ADK_TARGET_FS),initramfsarchive) targethelp: @@ -22,6 +27,10 @@ endif ifeq ($(ADK_TARGET_FS),initramfspiggyback) targethelp: @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}' +ifeq ($(ADK_TARGET_QEMU),y) + @echo "Start qemu with following command line:" + @echo 'qemu-system-or32 ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)' +endif endif kernel-strip: |