Patchwork [1/2] fs/jffs2: refactor endianess selection to use BR2_ENDIAN

login
register
mail settings
Submitter Thomas Petazzoni
Date April 7, 2013, 7:25 p.m.
Message ID <1365362725-30251-2-git-send-email-thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/234526/
State Accepted
Commit 0f1bce64bde1a17e4b8d2eceef19a3a4e9d40482
Headers show

Comments

Thomas Petazzoni - April 7, 2013, 7:25 p.m.
Instead of explicitly listing the sub-architectures or architectures
that are big-endian, use BR2_ENDIAN directly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 fs/jffs2/Config.in |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
Peter Korsgaard - April 11, 2013, 1:57 p.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Instead of explicitly listing the sub-architectures or architectures
 Thomas> that are big-endian, use BR2_ENDIAN directly.

Committed, thanks.

Patch

diff --git a/fs/jffs2/Config.in b/fs/jffs2/Config.in
index 9a96d7d..f15e730 100644
--- a/fs/jffs2/Config.in
+++ b/fs/jffs2/Config.in
@@ -92,10 +92,7 @@  config BR2_TARGET_ROOTFS_JFFS2_PADSIZE
 
 choice
 	prompt "Endianess"
-	default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_armeb || \
-			BR2_avr32 || BR2_m68k || BR2_mips || \
-			BR2_powerpc || BR2_sh2 || BR2_sh2a || \
-			BR2_sh3eb || BR2_sh4eb || BR2_sh4aeb || BR2_sparc
+	default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_ENDIAN = "BIG"
 
 config BR2_TARGET_ROOTFS_JFFS2_LE
 	bool "little-endian"