]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - fs/squashfs/squashfs.mk
Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/bin
[coffee/buildroot.git] / 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 -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
26
27 define ROOTFS_SQUASHFS_CMD
28         $(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ -noappend \
29                 $(ROOTFS_SQUASHFS_ARGS)
30 endef
31
32 $(eval $(call ROOTFS_TARGET,squashfs))