diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-06 22:53:02 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-07 01:55:46 +0100 |
commit | 3f12900839fd29222d3215f82579874ca3628581 (patch) | |
tree | 8318ae084f7775eff49d594e6915717c9f8d84cf /src/tests/qemu/Makefile | |
parent | wg-quick: match from beginning rather than shift right (diff) | |
download | wireguard-monolithic-historical-3f12900839fd29222d3215f82579874ca3628581.tar.xz wireguard-monolithic-historical-3f12900839fd29222d3215f82579874ca3628581.zip |
qemu: add support for powerpc
Diffstat (limited to 'src/tests/qemu/Makefile')
-rw-r--r-- | src/tests/qemu/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index e2d5ff5..5063f4f 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -14,7 +14,7 @@ endif ARCH := $(firstword $(subst -, ,$(CBUILD))) # Set these from the environment to override -KERNEL_VERSION ?= 4.15 +KERNEL_VERSION ?= 4.15.1 BUILD_PATH ?= $(PWD)/../../../qemu-build/$(ARCH) DISTFILES_PATH ?= $(PWD)/distfiles DEBUG_KERNEL ?= no @@ -161,8 +161,18 @@ else QEMU_MACHINE := -cpu 24Kf -machine malta -smp 1 CFLAGS += -march=mips32r2 -EL endif +else ifeq ($(ARCH),powerpc) +QEMU_ARCH := ppc +KERNEL_ARCH := powerpc +KERNEL_BZIMAGE := $(KERNEL_PATH)/arch/powerpc/boot/uImage +ifeq ($(CHOST),$(CBUILD)) +QEMU_MACHINE := -cpu host,accel=kvm -machine ppce500 +else +QEMU_MACHINE := -machine ppce500 +endif +CFLAGS += -mcpu=powerpc -mlong-double-64 -msecure-plt else -$(error I only build: x86_64, i686, arm, aarch64, mips, mipsel, mips64, mips64el) +$(error I only build: x86_64, i686, arm, aarch64, mips, mipsel, mips64, mips64el, powerpc) endif REAL_CC := $(CBUILD)-gcc |