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 # ############################################################# +ifeq ($(BR2_ENDIAN),"BIG") +CRAMFS_ENDIANNESS=-b +else 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) -CRAMFS_ENDIANNESS=-b endif CRAMFS_TARGET=$(IMAGE).cramfs diff --git a/target/squashfs/squashfsroot.mk b/target/squashfs/squashfsroot.mk index 515153a0a2..c9eb743276 100644 --- a/target/squashfs/squashfsroot.mk +++ b/target/squashfs/squashfsroot.mk @@ -35,24 +35,10 @@ squashfs-dirclean: # Build the squashfs root filesystem image # ############################################################# +ifeq ($(BR2_ENDIAN),"BIG") +SQUASHFS_ENDIANNESS=-be +else 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) -SQUASHFS_ENDIANNESS=-be endif SQUASHFS_TARGET:=$(IMAGE).squashfs