fs/squashfs: squashfs3 needs to set big/little endian
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 26 May 2010 20:46:05 +0000 (22:46 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 26 May 2010 20:47:32 +0000 (22:47 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
fs/squashfs/squashfs.mk

index f11ba2090032b5b2f02821eb912a8e861bfe1fb2..a9041828dc9c4bde020096d9e875d715110d2e7b 100644 (file)
@@ -8,10 +8,18 @@ ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
 ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
 else
 ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3
+
+ifeq ($(BR2_ENDIAN),"BIG")
+ROOTFS_SQUASHF_ARGS=-be
+else
+ROOTFS_SQUASHFS_ARGS=-le
+endif
+
 endif
 
 define ROOTFS_SQUASHFS_CMD
-       $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend
+       $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
+               $(ROOTFS_SQUASHFS_ARGS)
 endef
 
-$(eval $(call ROOTFS_TARGET,squashfs))
\ No newline at end of file
+$(eval $(call ROOTFS_TARGET,squashfs))