Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] arch/Config.in.xtensa: provide BR2_ENDIAN symbol
@ 2015-05-05 15:42 Max Filippov
  2015-05-05 15:45 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Max Filippov @ 2015-05-05 15:42 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 arch/Config.in.xtensa | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/Config.in.xtensa b/arch/Config.in.xtensa
index ff71e0b..62d02c5 100644
--- a/arch/Config.in.xtensa
+++ b/arch/Config.in.xtensa
@@ -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
 
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-05 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 15:42 [Buildroot] [PATCH] arch/Config.in.xtensa: provide BR2_ENDIAN symbol Max Filippov
2015-05-05 15:45 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox