OSDN Git Service

microblaze: add endianness options to LDFLAGS instead of LD
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 3 Jul 2018 01:22:01 +0000 (10:22 +0900)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 25 Jul 2018 07:14:47 +0000 (09:14 +0200)
commit0fbe9a245c60bedebb6dd329966f463bb724450a
treefdc64fa83ae3d29a6ff81f2000e50b03662bfa55
parented207a743444aca63a4a71eadf6ae19e99ee1534
microblaze: add endianness options 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.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/Makefile