From: Peter Korsgaard Date: Wed, 26 May 2010 20:46:05 +0000 (+0200) Subject: fs/squashfs: squashfs3 needs to set big/little endian X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e74bcb6f9a69e55e57d8c677567c86fa76abc5a7;p=buildroot.git fs/squashfs: squashfs3 needs to set big/little endian Signed-off-by: Peter Korsgaard --- diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index f11ba20900..a9041828dc 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))