From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Peter Crosthwaite <crosthwaite.peter@gmail.com>,
Richard Henderson <rth@twiddle.net>,
Aurelien Jarno <aurelien@aurel32.net>,
Peter Maydell <peter.maydell@linaro.org>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Michael Walle <michael@walle.cc>,
Laurent Vivier <laurent@vivier.eu>,
Yongbok Kim <yongbok.kim@imgtec.com>,
Anthony Green <green@moxielogic.com>, Jia Liu <proljc@gmail.com>,
David Gibson <david@gibson.dropbear.id.au>,
Alexander Graf <agraf@suse.de>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
Artyom Tarasenko <atar4qemu@gmail.com>,
Guan Xuetao <gxt@mprc.pku.edu.cn>,
Eduardo Habkost <ehabkost@redhat.com>,
Max Filippov <jcmvbkbc@gmail.com>,
Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
James Hogan <james.hogan@imgtec.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Cornelia Huck <cornelia.huck@de.ibm.com>,
Marcelo Tosatti <mtosatti@redhat.com>
Subject: [Qemu-devel] [RFC for-2.9 01/11] Makefile: Allow CPU targets to reside in target/ folder, too
Date: Wed, 30 Nov 2016 10:47:35 +0100 [thread overview]
Message-ID: <1480499265-18528-2-git-send-email-thuth@redhat.com> (raw)
In-Reply-To: <1480499265-18528-1-git-send-email-thuth@redhat.com>
To be able to compile the CPU targets from within a subfolder
of the target/ folder, we've got to adapt the Makefile.target
a little bit first.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
Makefile.target | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 7a5080e..90b25ae 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -7,11 +7,17 @@ include config-target.mak
include config-devices.mak
include $(SRC_PATH)/rules.mak
+ifneq ($(wildcard $(SRC_PATH)/target/$(TARGET_BASE_ARCH)),)
+TARGET_FOLDER=target/$(TARGET_BASE_ARCH)
+else
+TARGET_FOLDER=target-$(TARGET_BASE_ARCH)
+endif
+
$(call set-vpath, $(SRC_PATH):$(BUILD_DIR))
ifdef CONFIG_LINUX
QEMU_CFLAGS += -I../linux-headers
endif
-QEMU_CFLAGS += -I.. -I$(SRC_PATH)/target-$(TARGET_BASE_ARCH) -DNEED_CPU_H
+QEMU_CFLAGS += -I.. -I$(SRC_PATH)/$(TARGET_FOLDER) -DNEED_CPU_H
QEMU_CFLAGS+=-I$(SRC_PATH)/include
@@ -92,7 +98,7 @@ obj-$(CONFIG_TCG_INTERPRETER) += tci.o
obj-y += tcg/tcg-common.o
obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o
obj-y += fpu/softfloat.o
-obj-y += target-$(TARGET_BASE_ARCH)/
+obj-y += $(TARGET_FOLDER)/
obj-y += disas.o
obj-y += tcg-runtime.o
obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o
--
1.8.3.1
next prev parent reply other threads:[~2016-11-30 9:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 9:47 [Qemu-devel] [RFC for-2.9 00/11] Move target-* CPU file into a target/ folder Thomas Huth
2016-11-30 9:47 ` Thomas Huth [this message]
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 02/11] tilegx: Move CPU files to " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 03/11] m68k: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 04/11] alpha: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 05/11] arm: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 06/11] ppc: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 07/11] i386: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 08/11] microblaze: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 09/11] mips: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 10/11] s390x: " Thomas Huth
2016-11-30 9:47 ` [Qemu-devel] [RFC for-2.9 11/11] sparc: " Thomas Huth
2016-11-30 10:01 ` [Qemu-devel] [RFC for-2.9 00/11] Move target-* CPU file into a " Christian Borntraeger
2016-11-30 18:30 ` Eric Blake
2016-11-30 10:10 ` Laurent Vivier
2016-11-30 10:12 ` Thomas Huth
2016-11-30 17:37 ` Richard Henderson
2016-11-30 18:28 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1480499265-18528-2-git-send-email-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=agraf@suse.de \
--cc=atar4qemu@gmail.com \
--cc=aurelien@aurel32.net \
--cc=borntraeger@de.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=crosthwaite.peter@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=edgar.iglesias@gmail.com \
--cc=ehabkost@redhat.com \
--cc=green@moxielogic.com \
--cc=gxt@mprc.pku.edu.cn \
--cc=james.hogan@imgtec.com \
--cc=jcmvbkbc@gmail.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=laurent@vivier.eu \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=michael@walle.cc \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=proljc@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=yongbok.kim@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).