From b8991af6b9e0939b19767fc848cecfef7db50964 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 12 Feb 2018 19:01:13 +0000 Subject: hppa: add basic qemu support --- target/hppa/Makefile | 59 +++++++++++++++++++++++++++++++++++++++++++ target/hppa/kernel/qemu-hppa | 3 +++ target/hppa/systems/qemu-hppa | 8 ++++++ 3 files changed, 70 insertions(+) create mode 100644 target/hppa/kernel/qemu-hppa create mode 100644 target/hppa/systems/qemu-hppa (limited to 'target/hppa') 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. + -- cgit v1.2.3