2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2004-03-05 20:09:57 +01:00
|
|
|
#
|
|
|
|
# Build the squashfs root filesystem image
|
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2004-03-05 20:09:57 +01:00
|
|
|
|
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)
|
2011-03-04 15:10:14 +01:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
|
|
|
else
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y)
|
2011-03-03 11:49:57 +01:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp xz
|
2010-09-20 22:05:39 +02:00
|
|
|
else
|
2010-09-20 16:19:26 +02:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
|
|
|
endif
|
2010-09-20 22:05:39 +02:00
|
|
|
endif
|
2011-03-04 15:10:14 +01:00
|
|
|
endif
|
2010-09-20 16:19:26 +02:00
|
|
|
|
2010-03-10 00:14:29 +01:00
|
|
|
define ROOTFS_SQUASHFS_CMD
|
2013-01-20 15:03:13 +01:00
|
|
|
$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \
|
2010-08-31 21:53:40 +02:00
|
|
|
$(ROOTFS_SQUASHFS_ARGS) && \
|
2013-01-20 15:03:13 +01:00
|
|
|
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))
|