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] [PATCH 01/20] Makefile: Allow CPU targets to reside in target/ folder, too
Date: Fri, 9 Dec 2016 13:17:31 +0100 [thread overview]
Message-ID: <1481285870-3396-2-git-send-email-thuth@redhat.com> (raw)
In-Reply-To: <1481285870-3396-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. After this change, target CPUs can either
reside in a target/xxx folder or continue to use the target-xxx
scheme. The latter will be disabled once all targets have been
moved.
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-12-09 12:18 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 12:17 [Qemu-devel] [PATCH for-2.9 00/20] Move target-* CPU file into a target/ folder Thomas Huth
2016-12-09 12:17 ` Thomas Huth [this message]
2016-12-09 12:24 ` [Qemu-devel] [PATCH 01/20] Makefile: Allow CPU targets to reside in target/ folder, too Laurent Vivier
2016-12-09 16:51 ` Thomas Huth
2016-12-10 10:59 ` Laurent Vivier
2016-12-11 23:26 ` David Gibson
2016-12-09 12:17 ` [Qemu-devel] [PATCH 02/20] tilegx: Move CPU files to target/ folder Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 03/20] m68k: " Thomas Huth
2016-12-09 12:26 ` Laurent Vivier
2016-12-09 12:17 ` [Qemu-devel] [PATCH 04/20] alpha: " Thomas Huth
2016-12-09 16:43 ` Richard Henderson
2016-12-09 12:17 ` [Qemu-devel] [PATCH 05/20] arm: " Thomas Huth
2016-12-13 18:19 ` Peter Maydell
2016-12-14 7:43 ` Thomas Huth
2016-12-14 7:56 ` Laurent Vivier
2016-12-14 7:59 ` Thomas Huth
2016-12-14 8:54 ` Paolo Bonzini
2016-12-09 12:17 ` [Qemu-devel] [PATCH 06/20] ppc: " Thomas Huth
2016-12-10 8:55 ` David Gibson
2016-12-09 12:17 ` [Qemu-devel] [PATCH 07/20] i386: " Thomas Huth
2016-12-09 12:39 ` Eduardo Habkost
2016-12-09 12:17 ` [Qemu-devel] [PATCH 08/20] microblaze: " Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 09/20] mips: " Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 10/20] s390x: " Thomas Huth
2016-12-09 12:34 ` Christian Borntraeger
2016-12-09 12:40 ` Cornelia Huck
2016-12-09 12:17 ` [Qemu-devel] [PATCH 11/20] sparc: " Thomas Huth
[not found] ` <CACXAS8ACJpCDJ+Ti9xhY3hvYz4CWD+E2iWNQ5H+8r8oUggm-Yg@mail.gmail.com>
2016-12-09 14:21 ` Artyom Tarasenko
2016-12-09 12:17 ` [Qemu-devel] [PATCH 12/20] cris: " Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 13/20] lm32: " Thomas Huth
2016-12-09 12:31 ` Michael Walle
2016-12-09 12:17 ` [Qemu-devel] [PATCH 14/20] moxie: " Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 15/20] openrisc: " Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 16/20] sh4: " Thomas Huth
2016-12-09 12:17 ` [Qemu-devel] [PATCH 17/20] tricore: " Thomas Huth
2016-12-09 12:30 ` Bastian Koppelmann
2016-12-09 12:17 ` [Qemu-devel] [PATCH 18/20] unicore32: " Thomas Huth
2016-12-11 0:16 ` Xuetao Guan
2016-12-11 0:21 ` Xuetao Guan
2016-12-09 12:17 ` [Qemu-devel] [PATCH 19/20] xtensa: " Thomas Huth
2016-12-09 18:12 ` Max Filippov
2016-12-09 12:17 ` [Qemu-devel] [PATCH 20/20] Makefile.target: Targets now have to reside in the " Thomas Huth
2016-12-09 12:27 ` Laurent Vivier
2016-12-13 16:20 ` Paolo Bonzini
2016-12-10 12:54 ` [Qemu-devel] [PATCH for-2.9 00/20] Move target-* CPU file into a " Edgar E. Iglesias
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=1481285870-3396-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).