Skip to contentSkip to conversation

arch/Config.in.xtensa: provide BR2_ENDIAN symbol

PATCH Superseded Max Filippov 2 participants 2 messages May 5, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/Config.in.xtensa: provide BR2_ENDIAN symbol

---
 arch/Config.in.xtensa | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/Config.in.xtensa +14 -0
index ff71e0b..62d02c5 100644
@@ -33,6 +33,20 @@ config BR2_XTENSA_OVERLAY_DIR
 	  configurations. They are provided by the processor vendor or
 	  directly from Tensilica.
 
+choice
+	prompt "Target Architecture Endianness"
+	depends on BR2_XTENSA_CUSTOM
+	default BR2_XTENSA_LITTLE_ENDIAN
+config BR2_XTENSA_LITTLE_ENDIAN
+	bool "Little endian"
+config BR2_XTENSA_BIG_ENDIAN
+	bool "Big endian"
+endchoice
+
+config BR2_ENDIAN
+	default "LITTLE"	if BR2_XTENSA_LITTLE_ENDIAN
+	default "BIG"		if BR2_xtensa_fsf || BR2_XTENSA_BIG_ENDIAN
+
 config BR2_ARCH
 	default "xtensa"	if BR2_xtensa
 
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/1 arch/Config.in.xtensa: provide BR2_ENDIAN symbol

Dear Max Filippov,

Quoted 4 lines · Max Filippov
---
 arch/Config.in.xtensa | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Thanks for coming up so quickly with a patch for this!

I think it's important to mention that this is fixing an autobuilder failure, and put the pointer to the corresponding failure.

arch/Config.in.xtensa config BR2_XTENSA_OVERLAY_DIR · line 44

Quoted 9 lines
arch/Config.in.xtensa +9 -0
+choice
+	prompt "Target Architecture Endianness"
+	depends on BR2_XTENSA_CUSTOM
+	default BR2_XTENSA_LITTLE_ENDIAN
+config BR2_XTENSA_LITTLE_ENDIAN
+	bool "Little endian"
+config BR2_XTENSA_BIG_ENDIAN
+	bool "Big endian"
+endchoice

A little bit of spacing between options would be good I believe.

Other than that, looks good to me.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com