Received: from eggs.gnu.org ([2001:4830:134:3::10]:55102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFOOM-0006RD-7f for qemu-devel@nongnu.org; Fri, 09 Dec 2016 11:51:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFOOG-0005mI-Li for qemu-devel@nongnu.org; Fri, 09 Dec 2016 11:51:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35258) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cFOOG-0005m5-Fz for qemu-devel@nongnu.org; Fri, 09 Dec 2016 11:51:20 -0500 References: <1481285870-3396-1-git-send-email-thuth@redhat.com> <1481285870-3396-2-git-send-email-thuth@redhat.com> From: Thomas Huth Message-ID: Date: Fri, 9 Dec 2016 17:51:11 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 01/20] Makefile: Allow CPU targets to reside in target/ folder, too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org, Paolo Bonzini , Peter Crosthwaite , Richard Henderson , Aurelien Jarno , Peter Maydell Cc: "Edgar E. Iglesias" , Michael Walle , Yongbok Kim , Anthony Green , Jia Liu , David Gibson , Alexander Graf , Mark Cave-Ayland , Artyom Tarasenko , Guan Xuetao , Eduardo Habkost , Max Filippov , Bastian Koppelmann , James Hogan , Christian Borntraeger , Cornelia Huck , Marcelo Tosatti On 09.12.2016 13:24, Laurent Vivier wrote: > Le 09/12/2016 =C3=A0 13:17, Thomas Huth a =C3=A9crit : >> 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 >> --- >> 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 >> =20 >> +ifneq ($(wildcard $(SRC_PATH)/target/$(TARGET_BASE_ARCH)),) >> +TARGET_FOLDER=3Dtarget/$(TARGET_BASE_ARCH) >> +else >> +TARGET_FOLDER=3Dtarget-$(TARGET_BASE_ARCH) >> +endif >=20 > Perhaps you should consider to use ':=3D' instead of '=3D'. Most of the other variables in that file seem to be set with '=3D' instea= d of ':=3D', so using '=3D' sounds more consistent to me ... is there a rea= l benefit of using ':=3D' here? Thomas