OSDN Git Service

arm64: add endianness option to LDFLAGS instead of LD
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 3 Jul 2018 01:22:00 +0000 (10:22 +0900)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:16:46 +0000 (01:16 +0800)
commit4b560594ed2edfdec5a42e237230d33dfbed81bb
tree23024bc96928efdd79e6e08dbc0e3018b1b72a01
parentf8c3218be401bf54b5204e419fe1b9409bc1e1a4
arm64: add endianness option to LDFLAGS instead of LD

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.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Makefile