diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-29 07:08:47 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-02 03:41:49 +0200 |
commit | 8451e85a596dbd8f9f961f49a3e7ee09ac82aa10 (patch) | |
tree | bbcbc1906df163500d4eff179241482f0130d46f /src/tests | |
parent | 5e7b0892b652d45a50257c0a32c5a30010598332 (diff) |
qemu: support m68k
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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" |