Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp995973imm; Wed, 4 Jul 2018 09:30:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcmRm6DvlF3Dz+7O2vuICIK3PqZE4NQrhQsRTkZdgA4Ywk38ChXNESui6O6WVZsi7EbBuWE X-Received: by 2002:a63:2b88:: with SMTP id r130-v6mr2502992pgr.170.1530721851339; Wed, 04 Jul 2018 09:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530721851; cv=none; d=google.com; s=arc-20160816; b=cnIiWgo+vC7sGBoPfqOUR7faLw44F4aMJHNNY7alW+BR5s0A7QZXzH7CBDwh+i9PYP E1sBfjuPGgWPIlI0mCrNt1dt3aUUD4WmY8DLSr4YOjWlpUCZUcRmDZKh2K323ql2qZlY 02uLji32tnySs9WlkRkG/sdWFHzt3RTB5JJYNnXNKTpCzyA2xaFOxWuM10q7CThODrrR 6prPTOw+fP8VODI201+V+vxGCYphqCGwOwHmH1RP46eOSK3ad5JAC7Mu67lYGcZ1GIHF 0OfioVrHXizgmk5cE/Xsa6Nm0X2LcYsmzL/cDVlez+hcOxU2EJ3/LkeZKotkp9orB842 7N0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=zcf1cIo6q13jTm3YeoH08W/avAlS2a7mWrkrTNXwa2o=; b=FtFdo7tAjg+ZAlT+uxGm4dL9o0LsEtmhBqX4A6hbdwrd6PWibQ/MOXHTDeyQNhDmpn 8AiR/BnmnPbTp3xHtD9cPVMDIDDE5QuOseFq7+AQVYtYvrpkm219jaW9JzaLmIoF7sGt ozEbjxDtQMHEIxvtcbVGQqKKmVuRmjumGVwdrKqW5WUo1+SPLILHnobmP7FMUyrdmM2h Ac5OC2bkfNDQ7D20zsWfKuD0RMhxuE/Wdvx0jdXbgJWtHHDEGh6H3E1kbYTrbOCZbYC+ Sp56NS6ZRft52qORrxe5dk5pzlrdFha1zRaqqOsfWTyApxgYK0M18LsqrKHoueHSouKR CRmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24-v6si3498452pgw.213.2018.07.04.09.30.37; Wed, 04 Jul 2018 09:30:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752664AbeGDQ37 (ORCPT + 99 others); Wed, 4 Jul 2018 12:29:59 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40416 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752401AbeGDQ35 (ORCPT ); Wed, 4 Jul 2018 12:29:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 81FE41595; Wed, 4 Jul 2018 09:29:57 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 530463F5AD; Wed, 4 Jul 2018 09:29:57 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 4E1DC1AE180C; Wed, 4 Jul 2018 17:30:37 +0100 (BST) Date: Wed, 4 Jul 2018 17:30:37 +0100 From: Will Deacon To: Masahiro Yamada Cc: Michal Simek , Russell King , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-arch , Sam Ravnborg , Nicholas Piggin , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] arm64: add endianness option to LDFLAGS instead of LD Message-ID: <20180704163036.GA8370@arm.com> References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> <1530580921-23340-3-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530580921-23340-3-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 10:22:00AM +0900, Masahiro Yamada wrote: > With the recent syntax extension, Kconfig is now able to evaluate the > compiler / toolchain capability. > > However, accumulating flags to 'LD' is not compatible with the way > it works; 'LD' must be passed to Kconfig to call $(ld-option,...) > from Kconfig files. If you tweak 'LD' in arch Makefile depending on > CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency > between Makefile and Kconfig. > > Signed-off-by: Masahiro Yamada > --- Acked-by: Will Deacon But note that this will conflict with: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-July/587726.html Catalin -- I'm assuming you're taking both of these and will resolve the conflict in the arm64 for-next/fixes branch. Cheers, Will > arch/arm64/Makefile | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 4527226..8f73da3 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -60,15 +60,13 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) > KBUILD_CPPFLAGS += -mbig-endian > CHECKFLAGS += -D__AARCH64EB__ > AS += -EB > -LD += -EB > -LDFLAGS += -maarch64linuxb > +LDFLAGS += -EB -maarch64linuxb > UTS_MACHINE := aarch64_be > else > KBUILD_CPPFLAGS += -mlittle-endian > CHECKFLAGS += -D__AARCH64EL__ > AS += -EL > -LD += -EL > -LDFLAGS += -maarch64linux > +LDFLAGS += -EL -maarch64linux > UTS_MACHINE := aarch64 > endif > > -- > 2.7.4 >