svn commit: trunk/buildroot/target: cramfs squashfs
Author: jacmet
Date: 2007-06-12 08:30:32 -0700 (Tue, 12 Jun 2007) New Revision: 18803
Log:
Use BR2_ENDIAN for big/little endianness detection
Modified:
trunk/buildroot/target/cramfs/cramfs.mk trunk/buildroot/target/squashfs/squashfsroot.mk
Changeset:
Modified: trunk/buildroot/target/cramfs/cramfs.mk
===================================================================
buildroot/target/cramfs/cramfs.mk +3 -17
@@ -39,25 +39,11 @@ # Build the cramfs root filesystem image # ############################################################# -CRAMFS_ENDIANNESS=-l -ifeq ($(strip $(BR2_armeb)),y) +ifeq ($(BR2_ENDIAN),"BIG") CRAMFS_ENDIANNESS=-b +else +CRAMFS_ENDIANNESS=-l 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) -CRAMFS_ENDIANNESS=-b -endif CRAMFS_TARGET=$(IMAGE).cramfs
Modified: trunk/buildroot/target/squashfs/squashfsroot.mk
===================================================================
buildroot/target/squashfs/squashfsroot.mk +3 -17
@@ -35,25 +35,11 @@ # Build the squashfs root filesystem image # ############################################################# -SQUASHFS_ENDIANNESS=-le -ifeq ($(strip $(BR2_armeb)),y) +ifeq ($(BR2_ENDIAN),"BIG") SQUASHFS_ENDIANNESS=-be +else +SQUASHFS_ENDIANNESS=-le 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) -SQUASHFS_ENDIANNESS=-be -endif SQUASHFS_TARGET:=$(IMAGE).squashfs