Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp603154imm; Mon, 2 Jul 2018 18:27:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIQ0KMMgDBQuauasV4OidymjGFpiysM+aywaeolIuGsJpdaNlHCnhc3pB3wTWfsmc4N20NW X-Received: by 2002:a65:520c:: with SMTP id o12-v6mr23929443pgp.15.1530581257483; Mon, 02 Jul 2018 18:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581257; cv=none; d=google.com; s=arc-20160816; b=QG3gNkQkCRryAcrY0bwvoBSs3As7mO21NsPmGvWlxVeSd4RLzG2Ae/IGc0e1nZj4dT s1P/1Jc5p5XAKZx258zpYM7+eRDVPSM7JiEw3wlfpf2oVCZLq8og/f4AfHxGlfN8bSCV oAylDZslKdW8HU7VbidMdAgGZCQLkAH/lC7RE0palL3LoFyw2tcSC6S5OaBwt9MNl+KZ y2dUMH5L4gPQTL4nCfso9xgx6zzFiM5SImNZhJsgK0c8cVqe9bgkmp3wRDn6+cBmRQDk 9cflHZ2GZyWHEsjJpIgVIWeoe4gHcANcvXXMYuUh1xFg7Ynh6Iroia0ndnUx2jEfC+Sh eArQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=zQEMhk9FQiWmNIMha6n4KD51gYhzRbPo/CA6JmnJjyU=; b=J083saXeKf4PQ0u1PootFg659rA5jIUHS3Q5GwdzbhcDXO0+enMJhIfuU7Kq8FWsyI 6JEDMsJ4C6SdR+1EG6CWKDjh49/2Q6SuzT8D1g0LgZYnTltbaop64UrTey7IdQpEFSL7 KD4SdfBCbsS6qNUoTxzfJiekg6p+QBKm68SWmQZvVJtctroLnmceXlMHL34lhUKQHP59 eHBJEuDedchf/fDk8aMxwNKpX+JB+IhlyJHvSUvnnm5lEYH7dql3WHlYRoTL+oiP6l5p PLAyEFR+LBJI2NKFIBfJvpcliSvQELOG8D8lqZTJ1UqF1r0rXwcEQbtNCSf4keHk80Gu bzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=19n8IXRG; 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 j10-v6si15122404pgq.503.2018.07.02.18.27.22; Mon, 02 Jul 2018 18:27:37 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=19n8IXRG; 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 S932322AbeGCBZF (ORCPT + 99 others); Mon, 2 Jul 2018 21:25:05 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:46619 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753639AbeGCBYj (ORCPT ); Mon, 2 Jul 2018 21:24:39 -0400 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 Cc: Sam Ravnborg , Nicholas Piggin , Masahiro Yamada , linux-kernel@vger.kernel.org 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)) -- 2.7.4