446906f10c77be1708c02b1389fe5524dc792876
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / fs / squashfs / squashfs.mk
1 ################################################################################
2 #
3 # Build the squashfs root filesystem image
4 #
5 ################################################################################
6
7 ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
8
9 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
10 ROOTFS_SQUASHFS_ARGS += -comp lz4
11 else
12 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
13 ROOTFS_SQUASHFS_ARGS += -comp lzo
14 else
15 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
16 ROOTFS_SQUASHFS_ARGS += -comp lzma
17 else
18 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y)
19 ROOTFS_SQUASHFS_ARGS += -comp xz
20 else
21 ROOTFS_SQUASHFS_ARGS += -comp gzip
22 endif
23 endif
24 endif
25 endif
26
27 define ROOTFS_SQUASHFS_CMD
28         $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \
29                 $(ROOTFS_SQUASHFS_ARGS) && \
30         chmod 0644 $@
31 endef
32
33 $(eval $(call ROOTFS_TARGET,squashfs))