diff options
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/qemu/Makefile | 11 | ||||
-rw-r--r-- | src/tests/qemu/arch/m68k.config | 8 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index 9d4bfe9..a3bde55 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -192,8 +192,17 @@ else QEMU_MACHINE := -machine ppce500 endif CFLAGS += -mcpu=powerpc -mlong-double-64 -msecure-plt +else ifeq ($(ARCH),m68k) +QEMU_ARCH := m68k +KERNEL_ARCH := m68k +KERNEL_BZIMAGE := $(KERNEL_PATH)/vmlinux +ifeq ($(CHOST),$(CBUILD)) +QEMU_MACHINE := -cpu host,accel=kvm -machine q800 +else +QEMU_MACHINE := -machine q800 +endif else -$(error I only build: x86_64, i686, arm, armeb, aarch64, aarch64_be, mips, mipsel, mips64, mips64el, powerpc) +$(error I only build: x86_64, i686, arm, armeb, aarch64, aarch64_be, mips, mipsel, mips64, mips64el, powerpc, m68k) endif REAL_CC := $(CBUILD)-gcc diff --git a/src/tests/qemu/arch/m68k.config b/src/tests/qemu/arch/m68k.config new file mode 100644 index 0000000..07f6041 --- /dev/null +++ b/src/tests/qemu/arch/m68k.config @@ -0,0 +1,8 @@ +CONFIG_MMU=y +CONFIG_M68040=y +CONFIG_MAC=y +CONFIG_SERIAL_PMACZILOG=y +CONFIG_SERIAL_PMACZILOG_TTYS=y +CONFIG_SERIAL_PMACZILOG_CONSOLE=y +CONFIG_CMDLINE_BOOL=y +CONFIG_CMDLINE="console=ttyS0 wg.success=ttyS1" |