From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Herrmann Subject: [PATCH v2 07/12] kvm tools, mips: Enable build of mips support Date: Mon, 19 May 2014 18:53:26 +0200 Message-ID: <1400518411-9759-8-git-send-email-andreas.herrmann@caviumnetworks.com> References: <1400518411-9759-1-git-send-email-andreas.herrmann@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain Cc: David Daney , Andreas Herrmann , , , James Hogan , David Daney To: Pekka Enberg Return-path: Received: from mail-bl2lp0211.outbound.protection.outlook.com ([207.46.163.211]:14124 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932713AbaESQzQ (ORCPT ); Mon, 19 May 2014 12:55:16 -0400 In-Reply-To: <1400518411-9759-1-git-send-email-andreas.herrmann@caviumnetworks.com> Sender: kvm-owner@vger.kernel.org List-ID: From: David Daney Signed-off-by: David Daney Signed-off-by: Andreas Herrmann --- tools/kvm/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index b872651..880d580 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/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)) -- 1.7.9.5