Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp487413imm; Wed, 25 Jul 2018 00:22:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdwe86T8B6ufOys9Jso5ytP+YCa76fihwZeIJwcQNbhRY+7zdDhcp5JszvkWPKlgADBzXaG X-Received: by 2002:a63:5350:: with SMTP id t16-v6mr19081354pgl.196.1532503332706; Wed, 25 Jul 2018 00:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532503332; cv=none; d=google.com; s=arc-20160816; b=RyvmP/Nv8BxhPdtnMBrPKFzr+PSVV/4l0oXbJpfE6V1NWDuczayE29FfXc17o+pW5g YCxFnbAXa4n2Rv9wsoZKFF98KcnfF1Hy5cQVg+b7RD7GbOZAsBUORTKLsASlPv3sW3hv AKjss0+7ktQgU98uvh9jkuVjtnxagepZjvJ+1i6TJFI3v4B+ZShX9NvpUtX/pR7G1Aei mV4gZ7Wh6ySt0kHkEV0I+r/L0LCHUOKVGkPiwCLXkEuscVzkqjNF2Fxf7FsUY2kXnBup vjl+mMV/COUKhyyhhy9eqau1FatbGHFH0OasAziPJPeGDCYTnyZn6pcLFBbNdg6dOgUg pVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject:reply-to :dkim-signature:arc-authentication-results; bh=ideTkBCpoDNc8/AMEbACMTkCfOQT8d//CQTcLY9wGvQ=; b=Fw+NBt/vyMIHToP0ivZUtJGHJEba/uDvsyuMMLdQqBsnov+VuP5v4ZSceNilAt8z2u peW2veTgo5DrDu0MyPrOx7xZoXZV3rAcfkan6U7h/VeY9Zv+gTe1/tBqXSgnWvezatx0 AtIPid6LiWlTEi8fn743L0vQn79xXQadrFcNbwd1B3S1uWP3RHOdEn1GaMJT7Dzt/mhR 71xOG6Hkk6qzniKIsb/rWxDAK4zp9KS7NUaqLE7jju31f0xHbsqXdX05ZjJVhBo/ixh0 SpqG6sknn+HgGTmRgVaSiXq5KfF1bzbTnHmV85CzaTgtwUE6XLmBkichlat6aUGc2Y6r YzLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=oKpFC6bl; 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 p1-v6si7743504pfb.280.2018.07.25.00.21.57; Wed, 25 Jul 2018 00:22:12 -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=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=oKpFC6bl; 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 S1728500AbeGYIb1 (ORCPT + 99 others); Wed, 25 Jul 2018 04:31:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54593 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728338AbeGYIb1 (ORCPT ); Wed, 25 Jul 2018 04:31:27 -0400 Received: by mail-wm0-f66.google.com with SMTP id c14-v6so4904189wmb.4 for ; Wed, 25 Jul 2018 00:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=reply-to:subject:to:cc:references:from:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to; bh=ideTkBCpoDNc8/AMEbACMTkCfOQT8d//CQTcLY9wGvQ=; b=oKpFC6blW1QQRRJEOTwluBc0B5IaTUd29cC8Zbsg4LOrAL8x4877s+4+yCWvm/F70P /vRwYgPKHK6z62kC6D4POuwVQlMUKZfZXPjKUfYAvyRlkp8CZkARpUY7YfWhdYVbTsgW oa+7J+fcsXsUYsKT0I1K2Wj7oBL754h2DvdTMrwPV74rFBG5sXuFdHJyQz4yTwoHmPvt y3ox0U44K7FaaQwi8PshZS/TR3vFSVBdj7XXru7TtIRwKM1jkVSJc7nT48t1fyJjvuCR k+gEIjm6FoDL9nIw+yy/rN9kzD55/zTH0HeIDD5l+htjTF402czaW9cAl6hLPL5JNRHQ OGdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to; bh=ideTkBCpoDNc8/AMEbACMTkCfOQT8d//CQTcLY9wGvQ=; b=NwLO9UVLKsuHyEGrDHn+o1d3OFhNpN5J4oRL1MdjRJCaGirk12G4mDbwA+NQTtTvPW RBP+1mLDzSTTc8jtVXu2oBDlJxWPFd8lF8+T5XvbPRmw9URCD1yYsGuvrhBekW+waCyb z/rDTIIJEcYRnqKRvtcNjRD24LX/oaJ4UkB+bhu8654a0cNG4RDSrsxg46SZis+bbdyJ 0DsY5ckTd8AvZ5+5hYmOsXP6VWEBN+Acy/MoHZRQpa8JQoBBn8vUmye7E+bqTmg+o+Cj K6qJRNq0puf+xKnU8DqKHkSYZILNZWRvEePnexlbx37gzyCDilNfJXhTMbgfndKnCjAQ ++Eg== X-Gm-Message-State: AOUpUlFdT8+0sBi4KmBQEjXWEEuE9ZVpwkDLd5oKZQtMp5b7qT/LzlRJ KNjxLlJxQK1ekXT04uzLJgCxqv9xaTtq3A== X-Received: by 2002:a1c:8406:: with SMTP id g6-v6mr3629264wmd.18.1532503263482; Wed, 25 Jul 2018 00:21:03 -0700 (PDT) Received: from [173.194.76.108] ([149.199.62.254]) by smtp.gmail.com with ESMTPSA id m13-v6sm1018433wru.93.2018.07.25.00.20.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 00:21:02 -0700 (PDT) Reply-To: monstr@monstr.eu Subject: Re: [PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD To: Masahiro Yamada , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch Cc: Sam Ravnborg , Nicholas Piggin , linux-kernel@vger.kernel.org References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> From: Michal Simek Openpgp: preference=signencrypt Autocrypt: addr=monstr@monstr.eu; prefer-encrypt=mutual; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFC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2VU/vCucl2LebwOeWP HIic/FvF0oY3lecyr+v1jvS5FXJ6rCn3uwotd30azG5pKDtAkpRqW283+LueDVQ5P/Gwp5V1 9e6oMggSVn53IRVPB4MzTXVm/Q03c5YXPqgP4bPIF624HAPRnUxCWY1yrZuE4zNPG5dfY0PN RmzhqoTJlA== Message-ID: <542827d9-38fe-b145-234b-764ab6b7f612@monstr.eu> Date: Wed, 25 Jul 2018 09:20:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="prFilB0ZdgGesCmeZF6lzp3U4xWu5jI4w" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --prFilB0ZdgGesCmeZF6lzp3U4xWu5jI4w Content-Type: multipart/mixed; boundary="URYShIJJvvPdHwILoi2Ar08YEf3Fni66X"; protected-headers="v1" From: Michal Simek Reply-To: monstr@monstr.eu To: Masahiro Yamada , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch Cc: Sam Ravnborg , Nicholas Piggin , linux-kernel@vger.kernel.org Message-ID: <542827d9-38fe-b145-234b-764ab6b7f612@monstr.eu> Subject: Re: [PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> --URYShIJJvvPdHwILoi2Ar08YEf3Fni66X Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 3.7.2018 03:22, Masahiro Yamada wrote: > With the recent syntax extension, Kconfig is now able to evaluate the > compiler / toolchain capability. >=20 > 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. >=20 > Signed-off-by: Masahiro Yamada > --- >=20 > arch/microblaze/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > 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= ) +=3D -mxl-pattern-compare > ifdef CONFIG_CPU_BIG_ENDIAN > KBUILD_CFLAGS +=3D -mbig-endian > KBUILD_AFLAGS +=3D -mbig-endian > -LD +=3D -EB > +LDFLAGS +=3D -EB > else > KBUILD_CFLAGS +=3D -mlittle-endian > KBUILD_AFLAGS +=3D -mlittle-endian > -LD +=3D -EL > +LDFLAGS +=3D -EL > endif > =20 > CPUFLAGS-1 +=3D $(call cc-option,-mcpu=3Dv$(CPU_VER)) >=20 Applied to next. Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs --URYShIJJvvPdHwILoi2Ar08YEf3Fni66X-- --prFilB0ZdgGesCmeZF6lzp3U4xWu5jI4w Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAltYJNYACgkQykllyylKDCExXwCfb/M/wFP3UNuWZh5i33DCMcSJ k7gAoJRmsvI0sJl5abkcJf+2VuJw3gQi =8EBp -----END PGP SIGNATURE----- --prFilB0ZdgGesCmeZF6lzp3U4xWu5jI4w--