2004-03-05 20:09:57 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Build the squashfs root filesystem image
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-04-09 12:15:59 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
|
2010-03-10 00:14:29 +01:00
|
|
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
2010-09-20 16:19:26 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
|
|
|
else
|
2010-09-20 22:05:39 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
|
|
|
else
|
2010-09-20 16:19:26 +02:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
|
|
|
endif
|
2010-09-20 22:05:39 +02:00
|
|
|
endif
|
2010-09-20 16:19:26 +02:00
|
|
|
|
2010-04-09 12:15:59 +02:00
|
|
|
else
|
|
|
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3
|
2010-05-26 22:46:05 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
2010-08-27 17:00:39 +02:00
|
|
|
ROOTFS_SQUASHFS_ARGS=-be
|
2010-05-26 22:46:05 +02:00
|
|
|
else
|
|
|
|
ROOTFS_SQUASHFS_ARGS=-le
|
|
|
|
endif
|
|
|
|
|
2010-04-09 12:15:59 +02:00
|
|
|
endif
|
2006-04-07 22:30:43 +02:00
|
|
|
|
2010-03-10 00:14:29 +01:00
|
|
|
define ROOTFS_SQUASHFS_CMD
|
2010-05-26 22:46:05 +02:00
|
|
|
$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
|
2010-08-31 21:53:40 +02:00
|
|
|
$(ROOTFS_SQUASHFS_ARGS) && \
|
|
|
|
chmod 0644 $$@
|
2010-03-10 00:14:29 +01:00
|
|
|
endef
|
2004-03-05 20:09:57 +01:00
|
|
|
|
2010-05-26 22:46:05 +02:00
|
|
|
$(eval $(call ROOTFS_TARGET,squashfs))
|