diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-07-03 03:22:01 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-07-25 09:14:47 +0200 |
commit | 0fbe9a245c60bedebb6dd329966f463bb724450a (patch) | |
tree | fdc64fa83ae3d29a6ff81f2000e50b03662bfa55 | |
parent | microblaze: remove consistent_sync and consistent_sync_page (diff) | |
download | linux-0fbe9a245c60bedebb6dd329966f463bb724450a.tar.xz linux-0fbe9a245c60bedebb6dd329966f463bb724450a.zip |
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>
-rw-r--r-- | arch/microblaze/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index d269dd4b8279..73330360a8e6 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)) |