2013-06-07 05:54:13 +08:00
|
|
|
################################################################################
|
2004-03-06 03:09:57 +08:00
|
|
|
#
|
|
|
|
# Build the squashfs root filesystem image
|
|
|
|
#
|
2013-06-07 05:54:13 +08:00
|
|
|
################################################################################
|
2004-03-06 03:09:57 +08:00
|
|
|
|
2010-03-10 07:14:29 +08:00
|
|
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
2010-09-20 22:19:26 +08:00
|
|
|
|
2017-08-06 23:41:02 +08:00
|
|
|
ROOTFS_SQUASHFS_ARGS = -noappend -processors $(PARALLEL_JOBS)
|
|
|
|
|
2020-06-15 06:41:43 +08:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_PAD),)
|
|
|
|
ROOTFS_SQUASHFS_ARGS += -nopad
|
|
|
|
endif
|
|
|
|
|
2014-05-16 05:31:36 +08:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
|
2015-08-11 15:58:21 +08:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lz4 -Xhc
|
2017-07-11 06:14:51 +08:00
|
|
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
2010-09-20 22:19:26 +08:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
2017-07-11 06:14:51 +08:00
|
|
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
2011-03-04 22:10:14 +08:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
2017-07-11 06:14:51 +08:00
|
|
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y)
|
2011-03-03 18:49:57 +08:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp xz
|
2018-04-17 03:39:51 +08:00
|
|
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD),y)
|
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp zstd
|
2010-09-21 04:05:39 +08:00
|
|
|
else
|
2010-09-20 22:19:26 +08:00
|
|
|
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
|
|
|
endif
|
|
|
|
|
2010-03-10 07:14:29 +08:00
|
|
|
define ROOTFS_SQUASHFS_CMD
|
2017-08-06 23:41:02 +08:00
|
|
|
$(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ $(ROOTFS_SQUASHFS_ARGS)
|
2010-03-10 07:14:29 +08:00
|
|
|
endef
|
2004-03-06 03:09:57 +08:00
|
|
|
|
2017-12-28 18:40:32 +08:00
|
|
|
$(eval $(rootfs))
|