From patchwork Tue Jul 3 01:22:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10502759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4181560362 for ; Tue, 3 Jul 2018 01:24:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FC2228A7D for ; Tue, 3 Jul 2018 01:24:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2372528A94; Tue, 3 Jul 2018 01:24:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B74F628A7D for ; Tue, 3 Jul 2018 01:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=HLYa7Wl/lpn0ncVKGPWyfmNyQexugGtI4x/X55zL2xU=; b=l/TdQvSCIh8GT02X6mZESHYGZ2 ouXh/gbNAPmsAyGdqVfesgNgpwd+3zdwWu1bqDUEFFgeGrsGdb9iSrjgbGrLosdfSHf9Q6tadD/e+ 6AbzFxub/gOW32sD1Oakb38eszpSROjVrtokvDdNIYDhpJbPiKMTapIdmabSXqeQFgXGncfCR23iL qNlQ0o2wS1WvCHX1EHiqPa0WaYlB0ysdaJ9Vuil4FlPNe5DLBF6+g4J97tj+widHRizFQwModCQnm GB26VAlYfE5eXaHcDf8aJ2pdgczPri2S/P9eAxGiAsmRHt7s3gbkEfN1Rt5571297qBlpGMrcfueW EMWpz0lw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1faA33-0000Ys-8E; Tue, 03 Jul 2018 01:24:05 +0000 Received: from conuserg-11.nifty.com ([210.131.2.78]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1faA2W-0008Tr-Gv for linux-arm-kernel@lists.infradead.org; Tue, 03 Jul 2018 01:23:38 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w631MU1q030863; Tue, 3 Jul 2018 10:22:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w631MU1q030863 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530580954; bh=zQEMhk9FQiWmNIMha6n4KD51gYhzRbPo/CA6JmnJjyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=19n8IXRGQ3WuqK+ya3EilbxmR9BNxuULE+SV5CBszfzsbk13mA8S9Guf6tFKtAYjf QoeYXdn7rlCk3+N68SHiNFqcxuGM8ngDyFNXSr6lcryS3KNE/gDZJCyCRa6lwciG4n SzwZHqRF90RzIMjwJzq9BGXy3zKgitOfJ11zTZx3eII5lUaQqXug1ss97ZvJGzQlsp 79A1a2g+V/r0sqUV73zQGOvS8oiletU69DzpASbrJwF26bMCKVBrOcvMLVDnVlJ0e8 of7A9jG5bgGpsgITSea0uuSOyzRrw9npVZ0975+WQGKHPzU+dhK15TWgRTNjkxoWN5 gqhdDz1+6j2Kw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch Subject: [PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD Date: Tue, 3 Jul 2018 10:22:01 +0900 Message-Id: <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180702_182333_953388_355AC88C X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , Sam Ravnborg , linux-kernel@vger.kernel.org, Nicholas Piggin MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- arch/microblaze/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index d269dd4b..7333036 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -40,11 +40,11 @@ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare ifdef CONFIG_CPU_BIG_ENDIAN KBUILD_CFLAGS += -mbig-endian KBUILD_AFLAGS += -mbig-endian -LD += -EB +LDFLAGS += -EB else KBUILD_CFLAGS += -mlittle-endian KBUILD_AFLAGS += -mlittle-endian -LD += -EL +LDFLAGS += -EL endif CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))