big endian builds

Vineet Gupta Vineet.Gupta1 at synopsys.com
Thu Mar 10 22:52:40 PST 2016


On Friday 11 March 2016 12:18 PM, Vineet Gupta wrote:
> 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

Please pardon this nonsense as lack of caffeine - despite the obvious fixup, I
still need to change the .config.
I think we need to revert the defconfig patch for fixing the CROSS_COMPILE prefix
after all !

>  CROSS_COMPILE := arc-linux-
>  endif
> +endif
>
>
> _______________________________________________
> linux-snps-arc mailing list
> linux-snps-arc at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-snps-arc
>




More information about the linux-snps-arc mailing list