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/qemu/Makefile | |
parent | 5e7b0892b652d45a50257c0a32c5a30010598332 (diff) |
qemu: support m68k
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/tests/qemu/Makefile')
-rw-r--r-- | src/tests/qemu/Makefile | 11 |
1 files changed, 10 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 |