aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2014-05-28 22:28:02 +0200
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:55 +0100
commit9902a02cefcc19c0893605e3b931469df08d2f27 (patch)
treeefb350d11e0aa9541ce63732065710dbe81d46d4
parentb5a5cd6735e13d5410147137f13e4c1e9bb8c063 (diff)
downloadkvmtool-9902a02cefcc19c0893605e3b931469df08d2f27.tar.gz
kvm tools, mips: Enable build of mips support
Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b8726518..880d5805 100644
--- a/Makefile
+++ b/Makefile
@@ -105,7 +105,7 @@ OBJS += virtio/mmio.o
# Translate uname -m into ARCH string
ARCH ?= $(shell uname -m | sed -e s/i.86/i386/ -e s/ppc.*/powerpc/ \
- -e s/armv7.*/arm/ -e s/aarch64.*/arm64/)
+ -e s/armv7.*/arm/ -e s/aarch64.*/arm64/ -e s/mips64/mips/)
ifeq ($(ARCH),i386)
ARCH := x86
@@ -184,6 +184,13 @@ ifeq ($(ARCH), arm64)
ARCH_WANT_LIBFDT := y
endif
+ifeq ($(ARCH),mips)
+ DEFINES += -DCONFIG_MIPS
+ ARCH_INCLUDE := mips/include
+ OBJS += mips/kvm.o
+ OBJS += mips/kvm-cpu.o
+ OBJS += mips/irq.o
+endif
###
ifeq (,$(ARCH_INCLUDE))