diff mbox

[1/2] ARC: [BE] Select correct CROSS_COMPILE prefix

Message ID 1457688441-31337-2-git-send-email-vgupta@synopsys.com
State Accepted
Headers show

Commit Message

Vineet Gupta March 11, 2016, 9:27 a.m. UTC
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>
---
 arch/arc/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Alexey Brodkin March 11, 2016, 9:56 a.m. UTC | #1
Hi Vineet,

On Fri, 2016-03-11 at 14:57 +0530, Vineet Gupta wrote:
> 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>
> ---

Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
diff mbox

Patch

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