From patchwork Tue Jul 3 01:21:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 140859 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp580975ljj; Mon, 2 Jul 2018 18:24:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdlapFDZseCT/7VPAZbUlCMQ9/JHSfwlrtsq4vajmvgX2OxHuZBejt+3Uv56yQxxKBsFP2T X-Received: by 2002:a62:3b89:: with SMTP id w9-v6mr20091976pfj.80.1530581077134; Mon, 02 Jul 2018 18:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581077; cv=none; d=google.com; s=arc-20160816; b=MQ2eZaWXCIfRtluYV/g6QjHRbOlpqztC3tg92MDZZ/cNmxSC2/JM/TneVGQxOMhumZ 217d3SZi2YpNzNAcJw1JCUVWekafMsL6ZJfcEE62o+3nUwq85ef/dWjN8vjcD9rid0J6 nO+j/sBZ1b8FuGybTGb2MRksDuCgGXYM915IukFTk0Wtjaw57799xd+/5xbAC0RgTdZ1 WF5Vsu/2l/8NrUjr149iOxisMlxAoYnloD7o1LiclP7jlfiyRI8nb3/fjh2ei9nEOjm/ D5E2BgqzH3MhcsLwH7b9ph3lfkLHYXJVokb418MdvkOw3oG8DiHAmrrJSCRIZeBUCSJe f4xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=BsBHv7H09wQg3HtJBRmrhTfMzbB9YKroTIVNIiZU3mI=; b=a/cexz3eT6YmqWI/zovWp4/n3Qc3dodxwWzbp3D8NPGNKWf7H/H+N/Bc6qPEyHTt2x O1BGHtNkSeDaLbz2GJpWloaiqhTQ3irBYm5a37mrZKFaELXZ2cy2VeNj56YlZQNjh1m5 AzXwAtn60uBqWRVP6WENF4relUpCfI22yeWc0w+n8NbDg6XRQhpPMwhFRop6uitfH4es lKJ9LtfmoJl5PpZ19xqcgXhFBuI4d4PbebuFTdXHs1Dj7eP4wQOIw2uaXcHjjDsig82S MuB0m1FSXamQiKyLwauEFse4NIyElDvF2m+gk01EvyM8j8nGo/6QSau/aBEQxRtq/cuA JpiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wjAlZk7k; 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 e37-v6si17708791plb.400.2018.07.02.18.24.36; Mon, 02 Jul 2018 18:24: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=wjAlZk7k; 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 S1753609AbeGCBYf (ORCPT + 31 others); Mon, 2 Jul 2018 21:24:35 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:46417 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeGCBYc (ORCPT ); Mon, 2 Jul 2018 21:24:32 -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 w631MU1n030863; Tue, 3 Jul 2018 10:22:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w631MU1n030863 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530580951; bh=BsBHv7H09wQg3HtJBRmrhTfMzbB9YKroTIVNIiZU3mI=; h=From:To:Cc:Subject:Date:From; b=wjAlZk7kWensR7nVTrVVjVZlVyDSfMK0JwabEyY5aeYqaVL68ThtDEqTY/uZBGOzq ZxsaFyanrIggN3THhOrNxUuxI+ek42hJBbkqsIpHPuJhYQTMnFYsGOtaSCYZ8N4kts j7w4rP657P037TDY7MmWIaKSUy7/1qILykL34QMl3V7u0UZRErh9NwiQ1dqVZxjbZ1 gk7Y6946NrkQyoR6NEfgXLeWArkz6B9Z3F+AHGj+RESBFz1WLRlfQfbV3XoxrWde3U wEHDVlVqzGXs+rp7xPCDx+8EW9DCv4WrRjXYmBVPCL0UVoVcgTDbnSPWWFF9d5mihF MN25hj/QJgv0Q== 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, Russell King Subject: [PATCH 0/3] arm, arm64, microblaze: add endianness options to LDFLAGS instead of LD Date: Tue, 3 Jul 2018 10:21:58 +0900 Message-Id: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are able to evaluate compiler / toolchain capability in the Kconfig phase. (If you do not know the background of this work, please read the commit log of 316d55d55f49eca442e4fd948f5fa92bab0c8312) To achieve this, 'CC', 'LD', etc. must be passed to Kconfig. arch/*/Makefile should not tweak such environment variables depending on CONFIG options - this would cause circular dependency. - We want to pass $(LD) from Makefile to Kconfig - CONFIG_CPU_BIG_ENDIAN is defined by Kconfig, then given back to Makefile Nicholas already fixed this issue for PowerPC in commit 1421dc6d48296a. I need to fix arm, arm64, microblaze as well before I start moving linker option tests to Kconfig from Makefile. arch maintainers: Please pick up a proper patch for your tree. Masahiro Yamada (3): ARM: add endianness option to LDFLAGS instead of LD arm64: add endianness option to LDFLAGS instead of LD microblaze: add endianness options to LDFLAGS instead of LD arch/arm/Makefile | 4 ++-- arch/arm64/Makefile | 6 ++---- arch/microblaze/Makefile | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) -- 2.7.4