<div dir="ltr"><div>I don't think it's necessary, what's the benfit?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-15 2:21 GMT+08:00 Vineet Gupta <span dir="ltr"><<a href="mailto:Vineet.Gupta1@synopsys.com" target="_blank">Vineet.Gupta1@synopsys.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thursday 14 August 2014 09:55 AM, Chen Gang wrote:<br>
> Normal architectures:<br>
><br>
> - Big endian: avr32, frv, m68k, openrisc, parisc, s390, sparc<br>
><br>
> - Little endian: alpha, blackfin, cris, hexagon, ia64, metag, mn10300,<br>
> score, unicore32, x86<br>
><br>
> - Choose in config time: arc, arm, arm64, c6x, m32r, mips, powerpc, sh<br>
><br>
> Special architectures:<br>
><br>
> - Deside by compiler: microblaze, tile, xtensa.<br>
><br>
> - Deside by building host: um<br>
><br>
> - Next, need improve Kbuild to probe endian to deside whether need mark<br>
> __BUILDING_TIME_BIG_ENDIAN__ before real config.<br>
><br>
> Another improvements:<br>
><br>
> - score: use '\t' instead of ' '.<br>
><br>
> - s390: sort the select value in alpha order.<br>
><br>
> Signed-off-by: Chen Gang <<a href="mailto:gang.chen.5i5j@gmail.com">gang.chen.5i5j@gmail.com</a>><br>
> ---<br>
> arch/alpha/Kconfig | 1 +<br>
> arch/arc/Kconfig | 1 +<br>
> arch/arm/Kconfig | 1 +<br>
> arch/arm64/Kconfig | 1 +<br>
> arch/avr32/Kconfig | 1 +<br>
> arch/blackfin/Kconfig | 1 +<br>
> arch/c6x/Kconfig | 1 +<br>
> arch/cris/Kconfig | 1 +<br>
> arch/frv/Kconfig | 1 +<br>
> arch/hexagon/Kconfig | 1 +<br>
> arch/ia64/Kconfig | 1 +<br>
> arch/m32r/Kconfig | 1 +<br>
> arch/m68k/Kconfig | 1 +<br>
> arch/metag/Kconfig | 1 +<br>
> arch/microblaze/Kconfig | 2 ++<br>
> arch/mips/Kconfig | 1 +<br>
> arch/mn10300/Kconfig | 1 +<br>
> arch/openrisc/Kconfig | 1 +<br>
> arch/parisc/Kconfig | 1 +<br>
> arch/powerpc/Kconfig | 1 +<br>
> arch/s390/Kconfig | 3 ++-<br>
> arch/score/Kconfig | 21 +++++++++++----------<br>
> arch/sparc/Kconfig | 1 +<br>
> arch/tile/Kconfig | 2 ++<br>
> arch/um/Kconfig.common | 2 ++<br>
> arch/unicore32/Kconfig | 1 +<br>
> arch/x86/Kconfig | 1 +<br>
> arch/xtensa/Kconfig | 2 ++<br>
> init/Kconfig | 6 ++++++<br>
> 29 files changed, 49 insertions(+), 11 deletions(-)<br>
><br>
> diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig<br>
> index b7ff9a3..1cb7426 100644<br>
> --- a/arch/alpha/Kconfig<br>
> +++ b/arch/alpha/Kconfig<br>
> @@ -27,6 +27,7 @@ config ALPHA<br>
> select MODULES_USE_ELF_RELA<br>
> select ODD_RT_SIGACTION<br>
> select OLD_SIGSUSPEND<br>
> + select CPU_LITTLE_ENDIAN<br>
> help<br>
> The Alpha is a 64-bit general-purpose processor designed and<br>
> marketed by the Digital Equipment Corporation of blessed memory,<br>
> diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig<br>
> index 9596b0a..e939abd 100644<br>
> --- a/arch/arc/Kconfig<br>
> +++ b/arch/arc/Kconfig<br>
> @@ -35,6 +35,7 @@ config ARC<br>
> select OF_EARLY_FLATTREE<br>
> select PERF_USE_VMALLOC<br>
> select HAVE_DEBUG_STACKOVERFLOW<br>
> + select CPU_LITTLE_ENDIAN if !CPU_BIG_ENDIAN<br>
<br>
</div></div>It is not clear what exactly are you trying to fix. What doesn't work w/o this<br>
patch !<br>
<span class="HOEnZb"><font color="#888888"><br>
-Vineet<br>
</font></span></blockquote></div><br></div>