* [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
* [Buildroot] [PATCH] arch/Config.in.xtensa: provide BR2_ENDIAN symbol
2015-05-05 15:42 [Buildroot] [PATCH] arch/Config.in.xtensa: provide BR2_ENDIAN symbol Max Filippov
@ 2015-05-05 15:45 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-05-05 15:45 UTC (permalink / raw)
To: buildroot
Dear Max Filippov,
On Tue, 5 May 2015 18:42:12 +0300, Max Filippov wrote:
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
> ---
> 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.
> +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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.