summaryrefslogtreecommitdiff
path: root/target/hppa
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-12 19:01:13 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-12 19:45:42 +0000
commitb8991af6b9e0939b19767fc848cecfef7db50964 (patch)
tree085222d142598f1173f9796b74db71bae8f0a103 /target/hppa
parent76c0b499fabbd435940376162010a4de344733c2 (diff)
hppa: add basic qemu support
Diffstat (limited to 'target/hppa')
-rw-r--r--target/hppa/Makefile59
-rw-r--r--target/hppa/kernel/qemu-hppa3
-rw-r--r--target/hppa/systems/qemu-hppa8
3 files changed, 70 insertions, 0 deletions
diff --git a/target/hppa/Makefile b/target/hppa/Makefile
index 03afae8f0..aba746bee 100644
--- a/target/hppa/Makefile
+++ b/target/hppa/Makefile
@@ -5,3 +5,62 @@ include $(ADK_TOPDIR)/rules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
+KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL)
+QEMU:=qemu-system-hppa
+QEMU_ARGS:=-nographic
+
+# target helper text
+ifeq ($(ADK_TARGET_FS),archive)
+targethelp:
+ @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
+endif
+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) $(QEMU_ARGS) -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
+endif
+endif
+ifeq ($(ADK_TARGET_FS),initramfsarchive)
+targethelp:
+ @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
+ @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
+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) $(QEMU_ARGS) -kernel $(FW_DIR)/$(TARGET_KERNEL)'
+endif
+endif
+ifeq ($(ADK_TARGET_FS),nfsroot)
+targethelp:
+ @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
+ @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
+endif
+
+kernel-strip:
+ @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+
+kernel-install: kernel-strip
+ @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
+
+# filesystem specific targets
+ifeq ($(ADK_TARGET_FS),archive)
+imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
+endif
+ifeq ($(ADK_TARGET_FS),initramfs)
+imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
+endif
+ifeq ($(ADK_TARGET_FS),initramfsarchive)
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
+endif
+ifeq ($(ADK_TARGET_FS),initramfspiggyback)
+imageinstall: createinitramfs targethelp
+endif
+ifeq ($(ADK_TARGET_FS),nfsroot)
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
+endif
diff --git a/target/hppa/kernel/qemu-hppa b/target/hppa/kernel/qemu-hppa
new file mode 100644
index 000000000..0b5910ff9
--- /dev/null
+++ b/target/hppa/kernel/qemu-hppa
@@ -0,0 +1,3 @@
+CONFIG_PARISC=y
+CONFIG_PA7100LC=y
+CONFIG_PDC_CONSOLE=y
diff --git a/target/hppa/systems/qemu-hppa b/target/hppa/systems/qemu-hppa
new file mode 100644
index 000000000..4c3a2ff97
--- /dev/null
+++ b/target/hppa/systems/qemu-hppa
@@ -0,0 +1,8 @@
+config ADK_TARGET_SYSTEM_QEMU_HPPA
+ bool "Qemu Emulator"
+ select ADK_TARGET_QEMU
+ select ADK_TARGET_CPU_PARISC
+ select ADK_TARGET_KERNEL_WITH_COMPRESSION
+ help
+ Qemu Emulator for HPPA architecture.
+