aboutsummaryrefslogtreecommitdiff
path: root/target/cramfs
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2007-06-12 15:30:32 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2007-06-12 15:30:32 +0000
commit45ac6df37c7b11c00bcec137a4f37a637183dc23 (patch)
tree7e6bdc7d5e4d2323e6d3fb7d495f3d37dfbe9d3d /target/cramfs
parent6755d78ea6fcfb7f0a8630d94caaba0b2d1c4d88 (diff)
downloadbuildroot-45ac6df37c7b11c00bcec137a4f37a637183dc23.tar.gz
buildroot-45ac6df37c7b11c00bcec137a4f37a637183dc23.tar.bz2
Use BR2_ENDIAN for big/little endianness detection
Diffstat (limited to 'target/cramfs')
-rw-r--r--target/cramfs/cramfs.mk20
1 files changed, 3 insertions, 17 deletions
diff --git a/target/cramfs/cramfs.mk b/target/cramfs/cramfs.mk
index 54a0fa8456..334048cd4f 100644
--- a/target/cramfs/cramfs.mk
+++ b/target/cramfs/cramfs.mk
@@ -39,24 +39,10 @@ cramfs-dirclean:
# Build the cramfs root filesystem image
#
#############################################################
-CRAMFS_ENDIANNESS=-l
-ifeq ($(strip $(BR2_armeb)),y)
-CRAMFS_ENDIANNESS=-b
-endif
-ifeq ($(strip $(BR2_mips)),y)
-CRAMFS_ENDIANNESS=-b
-endif
-ifeq ($(strip $(BR2_powerpc)),y)
-CRAMFS_ENDIANNESS=-b
-endif
-ifeq ($(strip $(BR2_sh3eb)),y)
-CRAMFS_ENDIANNESS=-b
-endif
-ifeq ($(strip $(BR2_sh4eb)),y)
-CRAMFS_ENDIANNESS=-b
-endif
-ifeq ($(strip $(BR2_sparc)),y)
+ifeq ($(BR2_ENDIAN),"BIG")
CRAMFS_ENDIANNESS=-b
+else
+CRAMFS_ENDIANNESS=-l
endif
CRAMFS_TARGET=$(IMAGE).cramfs