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
|
|
|
|
2017-08-06 17:41:02 +02:00
|
|
|
ROOTFS_SQUASHFS_ARGS = -noappend -processors $(PARALLEL_JOBS)
|
|
|
|
|
2014-05-15 23:31:36 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
|
2015-08-11 09:58:21 +02:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lz4 -Xhc
|
2017-07-11 00:14:51 +02:00
|
|
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
2010-09-20 16:19:26 +02:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
2017-07-11 00:14:51 +02:00
|
|
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
2011-03-04 15:10:14 +01:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
2017-07-11 00:14:51 +02:00
|
|
|
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-03-10 00:14:29 +01:00
|
|
|
define ROOTFS_SQUASHFS_CMD
|
2017-08-06 17:41:02 +02:00
|
|
|
$(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ $(ROOTFS_SQUASHFS_ARGS)
|
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))
|