public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm, arm64, microblaze: add endianness options to LDFLAGS instead of LD
@ 2018-07-03  1:21 Masahiro Yamada
  2018-07-03  1:21 ` [PATCH 0/3] arm,arm64,microblaze: " Masahiro Yamada
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Masahiro Yamada @ 2018-07-03  1:21 UTC (permalink / raw)
  To: Michal Simek, Russell King, Catalin Marinas, Will Deacon,
	linux-arm-kernel, linux-arch
  Cc: Masahiro Yamada, Sam Ravnborg, linux-kernel, Nicholas Piggin,
	Russell King


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-07-25  8:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-03  1:21 [PATCH 0/3] arm, arm64, microblaze: add endianness options to LDFLAGS instead of LD Masahiro Yamada
2018-07-03  1:21 ` [PATCH 0/3] arm,arm64,microblaze: " Masahiro Yamada
2018-07-03  1:21 ` [PATCH 1/3] ARM: add endianness option " Masahiro Yamada
2018-07-03  1:21   ` Masahiro Yamada
2018-07-03  1:22 ` [PATCH 2/3] arm64: " Masahiro Yamada
2018-07-03  1:22   ` Masahiro Yamada
2018-07-04 16:30   ` Will Deacon
2018-07-04 16:30     ` Will Deacon
2018-07-03  1:22 ` [PATCH 3/3] microblaze: add endianness options " Masahiro Yamada
2018-07-03  1:22   ` Masahiro Yamada
2018-07-24  1:53   ` Masahiro Yamada
2018-07-24  1:53     ` Masahiro Yamada
2018-07-25  7:20   ` Michal Simek
2018-07-25  7:20     ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox