From: David Gibson <david@gibson.dropbear.id.au>
To: Laurent Vivier <laurent@vivier.eu>
Cc: Thomas Huth <thuth@redhat.com>,
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>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Michael Walle <michael@walle.cc>,
Yongbok Kim <yongbok.kim@imgtec.com>,
Anthony Green <green@moxielogic.com>, Jia Liu <proljc@gmail.com>,
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: Re: [Qemu-devel] [PATCH 01/20] Makefile: Allow CPU targets to reside in target/ folder, too
Date: Mon, 12 Dec 2016 10:26:09 +1100 [thread overview]
Message-ID: <20161211232609.GA12127@umbus.fritz.box> (raw)
In-Reply-To: <f52e8502-56b9-e7aa-c95a-b3a5c33b0801@vivier.eu>
[-- Attachment #1: Type: text/plain, Size: 2146 bytes --]
On Sat, Dec 10, 2016 at 11:59:09AM +0100, Laurent Vivier wrote:
> Le 09/12/2016 à 17:51, Thomas Huth a écrit :
> > On 09.12.2016 13:24, Laurent Vivier wrote:
> >> Le 09/12/2016 à 13:17, Thomas Huth a écrit :
> >>> 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
> >>
> >> Perhaps you should consider to use ':=' instead of '='.
> >
> > Most of the other variables in that file seem to be set with '=' instead
> > of ':=', so using '=' sounds more consistent to me ... is there a real
> > benefit of using ':=' here?
>
> With ':=' your variable is expanded once, with '=' it is expanded
> whenever it is used. I think this is not needed in your case.
>
> https://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors
I tend to thing '=' is the safer default option unless you're really
hitting performance problems that ':=' can alleviate. Not
re-expanding can lead to confusing bugs later if the definition is
changed so that re-expansion matters in future.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-12-12 0:31 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 ` [Qemu-devel] [PATCH 01/20] Makefile: Allow CPU targets to reside in target/ folder, too Thomas Huth
2016-12-09 12:24 ` Laurent Vivier
2016-12-09 16:51 ` Thomas Huth
2016-12-10 10:59 ` Laurent Vivier
2016-12-11 23:26 ` David Gibson [this message]
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=20161211232609.GA12127@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--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=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=thuth@redhat.com \
--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).