summaryrefslogtreecommitdiffstats
path: root/arch/arc/Makefile
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-03-11 12:47:58 +0530
committerVineet Gupta <vgupta@synopsys.com>2016-03-11 14:59:54 +0530
commit89a269285fe350346b794676c79119b31015292f (patch)
treed8185be6ba0d9d2fd8df49265f438e41f5591296 /arch/arc/Makefile
parent2a41b6dc28dc71c1a3f1622612a26edc58f7561e (diff)
downloadlinux-89a269285fe350346b794676c79119b31015292f.tar.gz
linux-89a269285fe350346b794676c79119b31015292f.tar.bz2
linux-89a269285fe350346b794676c79119b31015292f.zip
ARC: [BE] Select correct CROSS_COMPILE prefix
This allows CONFIG_CPU_BIG_ENDIAN=y to build correctly out of the box, w/o any other tweaks. Cc: Noam Camus <noamc@ezchip.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anton Kolesov <akolesov@synosys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/Makefile')
-rw-r--r--arch/arc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile
index c8230f3395f2..babc09c61c6c 100644
--- a/arch/arc/Makefile
+++ b/arch/arc/Makefile
@@ -9,7 +9,11 @@
UTS_MACHINE := arc
ifeq ($(CROSS_COMPILE),)
+ifndef CONFIG_CPU_BIG_ENDIAN
CROSS_COMPILE := arc-linux-
+else
+CROSS_COMPILE := arceb-linux-
+endif
endif
KBUILD_DEFCONFIG := nsim_700_defconfig