summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-05-26 20:46:05 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-05-26 20:47:32 (GMT)
commite74bcb6f9a69e55e57d8c677567c86fa76abc5a7 (patch)
treea9829f1418cc0c05c03d1e66a9ae9b61ceda4497
parentec1bd9900a5f6eeb0646b79b310395c740dbf0c9 (diff)
downloadbuildroot-e74bcb6f9a69e55e57d8c677567c86fa76abc5a7.tar.gz
buildroot-e74bcb6f9a69e55e57d8c677567c86fa76abc5a7.tar.bz2
fs/squashfs: squashfs3 needs to set big/little endian
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--fs/squashfs/squashfs.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk
index f11ba20..a904182 100644
--- a/fs/squashfs/squashfs.mk
+++ b/fs/squashfs/squashfs.mk
@@ -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))