Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp602188imm; Mon, 2 Jul 2018 18:26:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAC35b9ZqWBjdXiUK+SC6FcEfR8/ygRlr0DPOrOlro/fQJ4KpfuZKHvao39zO0u6fAdqxr X-Received: by 2002:a63:89c7:: with SMTP id v190-v6mr23110427pgd.194.1530581163024; Mon, 02 Jul 2018 18:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581162; cv=none; d=google.com; s=arc-20160816; b=03WwMXqlJ0DHXUGlL/wgDta7aJMn6pYT9EKRyKpeunIu/GobPFiiglFcnlCPcyfPXt b9Rire4mgiheATK5gMG2uliDfACi+izdv54KjPdHDnYMTQoMj2bI9Lls8mtSpYtbloCa 7NtQCUbK6qTg5pgvcnTN1cS+Joen3DlGDNMZBLw+hGwJ1Ir/JNYCMbQc9lWh8F/pKQ7B dWxpWBNd6mS2Pu8GXL0hagOiapWrYeverBQZAweRk0BEmr81tv9WnS/QFGlpvX9Ze4bB Xswk/DhcN24mwknLzQ7ABAah/vprbYsffT1oURITiyLoLrGCuA3IKGwVZQLf80TgD51J QIMw== 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 f10-v6si16993980plr.265.2018.07.02.18.25.48; Mon, 02 Jul 2018 18:26:02 -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 S1753574AbeGCBYe (ORCPT + 99 others); Mon, 2 Jul 2018 21:24:34 -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