1 ################################################################################
5 ################################################################################
8 SQUASHFS_SOURCE
= squashfs
$(SQUASHFS_VERSION
).
tar.gz
9 SQUASHFS_SITE
= http
://downloads.sourceforge.net
/project
/squashfs
/squashfs
/squashfs
$(SQUASHFS_VERSION
)
10 SQUASHFS_LICENSE
= GPLv2
+
11 SQUASHFS_LICENSE_FILES
= COPYING
14 SQUASHFS_MAKE_ARGS
= XATTR_SUPPORT
=0
16 ifeq ($(BR2_PACKAGE_SQUASHFS_LZ4
),y
)
17 SQUASHFS_DEPENDENCIES
+= lz4
18 SQUASHFS_MAKE_ARGS
+= LZ4_SUPPORT
=1 COMP_DEFAULT
=lz4
20 SQUASHFS_MAKE_ARGS
+= LZ4_SUPPORT
=0
23 ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA
),y
)
24 SQUASHFS_DEPENDENCIES
+= xz
25 SQUASHFS_MAKE_ARGS
+= LZMA_XZ_SUPPORT
=1 COMP_DEFAULT
=lzma
27 SQUASHFS_MAKE_ARGS
+= LZMA_XZ_SUPPORT
=0
30 ifeq ($(BR2_PACKAGE_SQUASHFS_XZ
),y
)
31 SQUASHFS_DEPENDENCIES
+= xz
32 SQUASHFS_MAKE_ARGS
+= XZ_SUPPORT
=1 COMP_DEFAULT
=xz
34 SQUASHFS_MAKE_ARGS
+= XZ_SUPPORT
=0
37 ifeq ($(BR2_PACKAGE_SQUASHFS_LZO
),y
)
38 SQUASHFS_DEPENDENCIES
+= lzo
39 SQUASHFS_MAKE_ARGS
+= LZO_SUPPORT
=1 COMP_DEFAULT
=lzo
41 SQUASHFS_MAKE_ARGS
+= LZO_SUPPORT
=0
44 ifeq ($(BR2_PACKAGE_SQUASHFS_GZIP
),y
)
45 SQUASHFS_DEPENDENCIES
+= zlib
46 SQUASHFS_MAKE_ARGS
+= GZIP_SUPPORT
=1 COMP_DEFAULT
=gzip
48 SQUASHFS_MAKE_ARGS
+= GZIP_SUPPORT
=0
51 HOST_SQUASHFS_DEPENDENCIES
= host-zlib host-lz4 host-lzo host-xz
54 HOST_SQUASHFS_MAKE_ARGS
= \
62 define SQUASHFS_BUILD_CMDS
63 $(TARGET_MAKE_ENV
) $(MAKE
) \
65 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
66 EXTRA_LDFLAGS
="$(TARGET_LDFLAGS)" \
67 $(SQUASHFS_MAKE_ARGS
) \
68 -C
$(@D
)/squashfs-tools
/
71 define SQUASHFS_INSTALL_TARGET_CMDS
72 $(TARGET_MAKE_ENV
) $(MAKE
) $(SQUASHFS_MAKE_ARGS
) \
73 -C
$(@D
)/squashfs-tools
/ INSTALL_DIR
=$(TARGET_DIR
)/usr
/bin
install
76 define HOST_SQUASHFS_BUILD_CMDS
77 $(HOST_MAKE_ENV
) $(MAKE
) \
79 EXTRA_CFLAGS
="$(HOST_CFLAGS)" \
80 EXTRA_LDFLAGS
="$(HOST_LDFLAGS)" \
81 $(HOST_SQUASHFS_MAKE_ARGS
) \
82 -C
$(@D
)/squashfs-tools
/
85 define HOST_SQUASHFS_INSTALL_CMDS
86 $(HOST_MAKE_ENV
) $(MAKE
) $(HOST_SQUASHFS_MAKE_ARGS
) \
87 -C
$(@D
)/squashfs-tools
/ INSTALL_DIR
=$(HOST_DIR
)/usr
/bin
install
90 $(eval
$(generic-package
))
91 $(eval
$(host-generic-package
))