Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6449812imm; Mon, 23 Jul 2018 18:55:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdhBgK/RBIcDy18NofzBcoQlj1pmwKTcZRR19Fqx5UXTI5rDhs3XGJSFHWpA8itd2ykrR1/ X-Received: by 2002:a63:9856:: with SMTP id l22-v6mr14819483pgo.208.1532397332506; Mon, 23 Jul 2018 18:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532397332; cv=none; d=google.com; s=arc-20160816; b=Aut3R2dKcDT/O76kl7nUCxXWQYnRom9jQAWTJYCGa1sNSNoZeAAEPCEwuxA6KgU1hX Bm3DYwYqOk+ADPu1F4KA3Geg9N3ZuXkq6E6BAZa2dZimN/7HGZEPG7rq+1WtVZcocng7 ch+u8lMRd/fKGOg2sATzv/dp8TfxyT1KF9k2gxbG1Zxe+jcqwk4ORtvvXzmVgg6Rm97n C0MO5TJskQJ1JBEPpJ6kQuhxht4bjZIug+/h8IxBX7hVClT/gkgV1AzrCcXoWfMfPU2Y CLf8k9yhNyVm4SLuLxNlMwyRLMBvddCPgo9niJEC7pUyxMXLtpNZaVdL8YjUKq1CSpgb F11A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=25e/lUVi4dIfiYkaijNjq2BDmzhdApeV+iiBSeICS9M=; b=BShMWSqdX3rMf843VCuRdrgCj+E0x7Ddj5VXXgJ3E0pplajUJK8kz3nvBCTGZRwD5D FKkFShqrKXrKIgwwkdwRM8Ju4Jv300rdHvr1KdutZCudzGbeoQeGIRkVnZI59c9LoC0M 1LbDnPA45LxD+Ptvn6hwiT1tVe6qQTT7u8P4tIj3ip4tZNwA3iAtWx13LWPe5n7IOGOg r7HeTafTVPHZr1ltCH769p+9JPG4kGt1XA3wwX46sMuRFAYGopGnRU+pqIrKM9Ui4kFE 1dgIQ/xz1YNrrVcsOcV1SjpOtM6tOugIy6wnUkgeM/EIgurWtvnJNmhiukoKwwKO2Low kBQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="bBcds/bl"; 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 h36-v6si10297597pgm.125.2018.07.23.18.55.17; Mon, 23 Jul 2018 18:55:32 -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="bBcds/bl"; 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 S2388324AbeGXC6P (ORCPT + 99 others); Mon, 23 Jul 2018 22:58:15 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:57387 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388194AbeGXC6P (ORCPT ); Mon, 23 Jul 2018 22:58:15 -0400 Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) (authenticated) by conssluserg-03.nifty.com with ESMTP id w6O1rpFs018121; Tue, 24 Jul 2018 10:53:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com w6O1rpFs018121 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1532397232; bh=25e/lUVi4dIfiYkaijNjq2BDmzhdApeV+iiBSeICS9M=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=bBcds/blSebruz3Qwpg5xhbbFICFpUa2Q5VFCnsQhRmTM6+mzn/+uYSQkAv9YAyzf /oudGyUp/HbWtqsXdyHH/hVAICZF2KfAIUzflu5hQ76E5iB5tQdfYeVGUJ4mRXLAYu lDRVFJprNKp6koANiGXhbuKLSy2laLAvro2zzfugsftCqIBnvlwwmkgZIvCqVvkxhH vWSXZPyr07NNqFNoTEoqwlr1ydGdS6lkqrm/3iUdGr/bpdi4VyMsS1ufDNCt2Dr+CE Rly/25issAiLbYmJZdN8lyoHaJyyiatTatjLBhcJcaX47ygHPAvFXerR05HyySweG2 O2yG+xa7SAjQQ== X-Nifty-SrcIP: [209.85.213.51] Received: by mail-vk0-f51.google.com with SMTP id l143-v6so1301832vke.1; Mon, 23 Jul 2018 18:53:51 -0700 (PDT) X-Gm-Message-State: AOUpUlFaSMx0eIzksexhHIHjUFzIqFxC19O8Vppdeb35AUc6CMQfxbQQ VaN5R/HDp5uivrBjwT4u0mDRM/ObyNthRfWAfu0= X-Received: by 2002:a1f:df42:: with SMTP id w63-v6mr9577527vkg.135.1532397230920; Mon, 23 Jul 2018 18:53:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7289:0:0:0:0:0 with HTTP; Mon, 23 Jul 2018 18:53:10 -0700 (PDT) In-Reply-To: <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Tue, 24 Jul 2018 10:53:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD To: Michal Simek Cc: Masahiro Yamada , Linux Kernel Mailing List , linux-arch Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, Ping? 2018-07-03 10:22 GMT+09:00 Masahiro Yamada : > 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 > -- Best Regards Masahiro Yamada