1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Build the squashfs root filesystem image 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS = -noappend -processors $(PARALLEL_JOBS) 10*4882a593Smuzhiyun 11*4882a593Smuzhiyunifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_PAD),) 12*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -nopad 13*4882a593Smuzhiyunendif 14*4882a593Smuzhiyun 15*4882a593Smuzhiyunifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y) 16*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -comp lz4 -Xhc 17*4882a593Smuzhiyunelse ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y) 18*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -comp lzo 19*4882a593Smuzhiyunelse ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y) 20*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -comp lzma 21*4882a593Smuzhiyunelse ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y) 22*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -comp xz 23*4882a593Smuzhiyunelse ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD),y) 24*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -comp zstd 25*4882a593Smuzhiyunelse 26*4882a593SmuzhiyunROOTFS_SQUASHFS_ARGS += -comp gzip 27*4882a593Smuzhiyunendif 28*4882a593Smuzhiyun 29*4882a593Smuzhiyundefine ROOTFS_SQUASHFS_CMD 30*4882a593Smuzhiyun $(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ $(ROOTFS_SQUASHFS_ARGS) 31*4882a593Smuzhiyunendef 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun$(eval $(rootfs)) 34