Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp601959imm; Mon, 2 Jul 2018 18:25:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfPv5levR1Vk/CjJ1uy3CBkks+2f2uTbci2dRaFy6dqsPuXGteqBfR//QmFh2/IjoshrkR/ X-Received: by 2002:aa7:84cf:: with SMTP id x15-v6mr27429552pfn.220.1530581140876; Mon, 02 Jul 2018 18:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581140; cv=none; d=google.com; s=arc-20160816; b=zhFaefgj0hD0prMpK+33XDhWs6mEiMMdpJTO1caP5lVBkySvaAUPKvHtCm0Yfkdser gag/dhlX1i4ElH/CYT0xC/f4ItaFuJsrL1FTrL2J4SBjaoXi5pzWW+pXKbgkHLYJf6nY dr7Gc9duZOMvwVqSELmaAT2aOM0HII0iHKqPR8KoXxDqZsRbcLqD0rBTDIPxgTo699xC /VOvXHnsbQYNkopFRcTKBjp0Zia28nE1cO0LN/8863Utruxj2tH/ZfDxc6oyWk7TzkRG aL3Mrx9E15AlbUrWvzHUlHMr6TqkgF3Cgkj/I3XvOw2E9zV/Fza18UR9x6CAD94U7Hi/ MxxA== 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=N9EXVCIJOLVxm2JVzHsecjGPLiJubDV/StdikSRFzdg=; b=GyFY+qapHk+Iyxu3I0jquIrQBB7FKDt1hfpEnEQT8FEFMZAgoS15GMHvINv4rynpXL ln4QVvXa53ICm05shkEkVriqN0lJCiCnU+hikjiUaAxn12xrD73X0Mgb+Znt+G0CAsKL dz9JlvX6c6Qz48dt9oTGt5KKtnkIyJC2ZtqnPML09UewCkYX4qF27LdeSQ30PYhgVhk6 Ol1fpFSU3jqUJncLABraQ60x06aokxqKdzI1WqFOA7l/ZVUgDEUPwNElirpW5dWjZfkx rJTTTrvmwXs+ZraXLnh1kchLBDux2AyjpvjZDq3N8ArJr15iRpq/QBvKIP6T8YWwSBKZ 7lRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rSN8E8tE; 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 e1-v6si2788925pfg.257.2018.07.02.18.25.26; Mon, 02 Jul 2018 18:25:40 -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=rSN8E8tE; 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 S1753706AbeGCBYk (ORCPT + 99 others); Mon, 2 Jul 2018 21:24:40 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:46553 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeGCBYg (ORCPT ); Mon, 2 Jul 2018 21:24:36 -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 w631MU1o030863; Tue, 3 Jul 2018 10:22:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w631MU1o030863 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530580952; bh=N9EXVCIJOLVxm2JVzHsecjGPLiJubDV/StdikSRFzdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rSN8E8tEUJWwBuH+4+H1SebS283QsLAeq8ZEYW4/0B7y8IH2dlsTeHX00wWqXGeYF VZgLg0J5iBck6aGrpmJheEO8e+cfIYudGZr0GtluYRXzMAE9L1h+4oop5vL3Q7uApR OErzBKW/MLvBDibcQ1dClfqh44qg6hZ2Jnki3+4ASsstnCpL1JBESm3sd7JVimdQ5T Z5tCVhsnj6bkA4iKi/0O8VR+Lca97CgKOnh4OMmonqaLJwYfYp2jRxNhE2vVvO9u/l a3dUOekqvv7mEhrxetnbANx23nmALTnGUAQrMWCbD9XPclmNY2hLKtnNzVkjkZRbj/ bZj9NT+jpAOQw== 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 , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: add endianness option to LDFLAGS instead of LD Date: Tue, 3 Jul 2018 10:21:59 +0900 Message-Id: <1530580921-23340-2-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/arm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index fc26c3d..62ebeae 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -46,12 +46,12 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__ARMEB__ AS += -EB -LD += -EB +LDFLAGS += -EB else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__ARMEL__ AS += -EL -LD += -EL +LDFLAGS += -EL endif # -- 2.7.4