Thread (14 messages) 14 messages, 5 authors, 2014-08-25

Re: [PATCH v3] arch: Kconfig: Let all architectures set endian explicitly

From: Vineet Gupta <hidden>
Date: 2014-08-14 18:28:48
Also in: linux-alpha, linux-mips, linux-um

On Thursday 14 August 2014 09:55 AM, Chen Gang wrote:=0A=
Normal architectures:=0A=
=0A=
 - Big endian: avr32, frv, m68k, openrisc, parisc, s390, sparc=0A=
=0A=
 - Little endian: alpha, blackfin, cris, hexagon, ia64, metag, mn10300,=
=0A=
                  score, unicore32, x86=0A=
=0A=
 - Choose in config time: arc, arm, arm64, c6x, m32r, mips, powerpc, sh=
=0A=
=0A=
Special architectures:=0A=
=0A=
 - Deside by compiler: microblaze, tile, xtensa.=0A=
=0A=
 - Deside by building host: um=0A=
=0A=
 - Next, need improve Kbuild to probe endian to deside whether need mark=
=0A=
quoted hunk ↗ jump to hunk
   __BUILDING_TIME_BIG_ENDIAN__ before real config.=0A=
=0A=
Another improvements:=0A=
=0A=
 - score: use '\t' instead of ' '.=0A=
=0A=
 - s390: sort the select value in alpha order.=0A=
=0A=
Signed-off-by: Chen Gang <redacted>=0A=
---=0A=
 arch/alpha/Kconfig      |  1 +=0A=
 arch/arc/Kconfig        |  1 +=0A=
 arch/arm/Kconfig        |  1 +=0A=
 arch/arm64/Kconfig      |  1 +=0A=
 arch/avr32/Kconfig      |  1 +=0A=
 arch/blackfin/Kconfig   |  1 +=0A=
 arch/c6x/Kconfig        |  1 +=0A=
 arch/cris/Kconfig       |  1 +=0A=
 arch/frv/Kconfig        |  1 +=0A=
 arch/hexagon/Kconfig    |  1 +=0A=
 arch/ia64/Kconfig       |  1 +=0A=
 arch/m32r/Kconfig       |  1 +=0A=
 arch/m68k/Kconfig       |  1 +=0A=
 arch/metag/Kconfig      |  1 +=0A=
 arch/microblaze/Kconfig |  2 ++=0A=
 arch/mips/Kconfig       |  1 +=0A=
 arch/mn10300/Kconfig    |  1 +=0A=
 arch/openrisc/Kconfig   |  1 +=0A=
 arch/parisc/Kconfig     |  1 +=0A=
 arch/powerpc/Kconfig    |  1 +=0A=
 arch/s390/Kconfig       |  3 ++-=0A=
 arch/score/Kconfig      | 21 +++++++++++----------=0A=
 arch/sparc/Kconfig      |  1 +=0A=
 arch/tile/Kconfig       |  2 ++=0A=
 arch/um/Kconfig.common  |  2 ++=0A=
 arch/unicore32/Kconfig  |  1 +=0A=
 arch/x86/Kconfig        |  1 +=0A=
 arch/xtensa/Kconfig     |  2 ++=0A=
 init/Kconfig            |  6 ++++++=0A=
 29 files changed, 49 insertions(+), 11 deletions(-)=0A=
=0A=
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig=0A=
index b7ff9a3..1cb7426 100644=0A=
--- a/arch/alpha/Kconfig=0A=
+++ b/arch/alpha/Kconfig=0A=
@@ -27,6 +27,7 @@ config ALPHA=0A=
 	select MODULES_USE_ELF_RELA=0A=
 	select ODD_RT_SIGACTION=0A=
 	select OLD_SIGSUSPEND=0A=
+	select CPU_LITTLE_ENDIAN=0A=
 	help=0A=
 	  The Alpha is a 64-bit general-purpose processor designed and=0A=
 	  marketed by the Digital Equipment Corporation of blessed memory,=0A=
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig=0A=
index 9596b0a..e939abd 100644=0A=
--- a/arch/arc/Kconfig=0A=
+++ b/arch/arc/Kconfig=0A=
@@ -35,6 +35,7 @@ config ARC=0A=
 	select OF_EARLY_FLATTREE=0A=
 	select PERF_USE_VMALLOC=0A=
 	select HAVE_DEBUG_STACKOVERFLOW=0A=
+	select CPU_LITTLE_ENDIAN if !CPU_BIG_ENDIAN=0A=
=0A=
It is not clear what exactly are you trying to fix. What doesn't work w/o t=
his=0A=
patch !=0A=
=0A=
-Vineet=0A=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help