瀏覽代碼

Use BR2_ENDIAN for big/little endianness detection

Peter Korsgaard 18 年之前
父節點
當前提交
45ac6df37c
共有 2 個文件被更改,包括 6 次插入34 次删除
  1. 3 17
      target/cramfs/cramfs.mk
  2. 3 17
      target/squashfs/squashfsroot.mk

+ 3 - 17
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

+ 3 - 17
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