From 45ac6df37c7b11c00bcec137a4f37a637183dc23 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 12 Jun 2007 15:30:32 +0000 Subject: Use BR2_ENDIAN for big/little endianness detection --- target/squashfs/squashfsroot.mk | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'target/squashfs/squashfsroot.mk') diff --git a/target/squashfs/squashfsroot.mk b/target/squashfs/squashfsroot.mk index 515153a0a..c9eb74327 100644 --- a/target/squashfs/squashfsroot.mk +++ b/target/squashfs/squashfsroot.mk @@ -35,24 +35,10 @@ squashfs-dirclean: # Build the squashfs root filesystem image # ############################################################# -SQUASHFS_ENDIANNESS=-le -ifeq ($(strip $(BR2_armeb)),y) -SQUASHFS_ENDIANNESS=-be -endif -ifeq ($(strip $(BR2_mips)),y) -SQUASHFS_ENDIANNESS=-be -endif -ifeq ($(strip $(BR2_powerpc)),y) -SQUASHFS_ENDIANNESS=-be -endif -ifeq ($(strip $(BR2_sh3eb)),y) -SQUASHFS_ENDIANNESS=-be -endif -ifeq ($(strip $(BR2_sh4eb)),y) -SQUASHFS_ENDIANNESS=-be -endif -ifeq ($(strip $(BR2_sparc)),y) +ifeq ($(BR2_ENDIAN),"BIG") SQUASHFS_ENDIANNESS=-be +else +SQUASHFS_ENDIANNESS=-le endif SQUASHFS_TARGET:=$(IMAGE).squashfs -- cgit v1.2.3