big endian builds

Vineet Gupta Vineet.Gupta1 at synopsys.com
Thu Mar 10 22:47:54 PST 2016


So for big endian kernel builds, just selecting the CONFIG_CPU_BIG_ENDIAN is not
sufficient, we also need to manually change the CROSS_COMPILE prefix to arceb-xxx.

@Anton, is that what you do for verification builds !

@Noam I presume your defconfig has CONFIG_CROSS_COMPILE or you have set in env
variable ?


The kernel build system needs to take take care of that. Do you guys have issues
with patch below

------------>
diff --git a/arch/arc/Makefile b/arch/arc/Makefile
index c8230f3395f2..4abcdb89e391 100644
--- a/arch/arc/Makefile
+++ b/arch/arc/Makefile
@@ -9,8 +9,12 @@
 UTS_MACHINE := arc
 
 ifeq ($(CROSS_COMPILE),)
+ifndef CONFIG_CPU_BIG_ENDIAN
+CROSS_COMPILE := arceb-linux-
+else
 CROSS_COMPILE := arc-linux-
 endif
+endif




More information about the linux-snps-arc mailing list