keepalived: fix libnl optional dependency
[buildroot-gz.git] / fs / squashfs / squashfs.mk
blobc4d9ca50b346c1d05a7e5210c6a4e3c2b84cccd4
1 ################################################################################
3 # Build the squashfs root filesystem image
5 ################################################################################
7 ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
9 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
10 ROOTFS_SQUASHFS_ARGS += -comp lz4 -Xhc
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
27 define ROOTFS_SQUASHFS_CMD
28 $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \
29 $(ROOTFS_SQUASHFS_ARGS)
30 endef
32 $(eval $(call ROOTFS_TARGET,squashfs))