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
12 SQUASHFS_MAKE_ARGS
= XATTR_SUPPORT
=1
14 ifeq ($(BR2_PACKAGE_SQUASHFS_LZ4
),y
)
15 SQUASHFS_DEPENDENCIES
+= lz4
16 SQUASHFS_MAKE_ARGS
+= LZ4_SUPPORT
=1 COMP_DEFAULT
=lz4
18 SQUASHFS_MAKE_ARGS
+= LZ4_SUPPORT
=0
21 ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA
),y
)
22 SQUASHFS_DEPENDENCIES
+= xz
23 SQUASHFS_MAKE_ARGS
+= LZMA_XZ_SUPPORT
=1 COMP_DEFAULT
=lzma
25 SQUASHFS_MAKE_ARGS
+= LZMA_XZ_SUPPORT
=0
28 ifeq ($(BR2_PACKAGE_SQUASHFS_XZ
),y
)
29 SQUASHFS_DEPENDENCIES
+= xz
30 SQUASHFS_MAKE_ARGS
+= XZ_SUPPORT
=1 COMP_DEFAULT
=xz
32 SQUASHFS_MAKE_ARGS
+= XZ_SUPPORT
=0
35 ifeq ($(BR2_PACKAGE_SQUASHFS_LZO
),y
)
36 SQUASHFS_DEPENDENCIES
+= lzo
37 SQUASHFS_MAKE_ARGS
+= LZO_SUPPORT
=1 COMP_DEFAULT
=lzo
39 SQUASHFS_MAKE_ARGS
+= LZO_SUPPORT
=0
42 ifeq ($(BR2_PACKAGE_SQUASHFS_GZIP
),y
)
43 SQUASHFS_DEPENDENCIES
+= zlib
44 SQUASHFS_MAKE_ARGS
+= GZIP_SUPPORT
=1 COMP_DEFAULT
=gzip
46 SQUASHFS_MAKE_ARGS
+= GZIP_SUPPORT
=0
49 HOST_SQUASHFS_DEPENDENCIES
= host-zlib host-lz4 host-lzo host-xz
51 HOST_SQUASHFS_MAKE_ARGS
= \
59 define SQUASHFS_BUILD_CMDS
60 $(TARGET_MAKE_ENV
) $(MAKE
) \
62 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
63 EXTRA_LDFLAGS
="$(TARGET_LDFLAGS)" \
64 $(SQUASHFS_MAKE_ARGS
) \
65 -C
$(@D
)/squashfs-tools
/
68 define SQUASHFS_INSTALL_TARGET_CMDS
69 $(TARGET_MAKE_ENV
) $(MAKE
) $(SQUASHFS_MAKE_ARGS
) \
70 -C
$(@D
)/squashfs-tools
/ INSTALL_DIR
=$(TARGET_DIR
)/usr
/bin
install
73 define HOST_SQUASHFS_BUILD_CMDS
74 $(HOST_MAKE_ENV
) $(MAKE
) \
76 EXTRA_CFLAGS
="$(HOST_CFLAGS)" \
77 EXTRA_LDFLAGS
="$(HOST_LDFLAGS)" \
78 $(HOST_SQUASHFS_MAKE_ARGS
) \
79 -C
$(@D
)/squashfs-tools
/
82 define HOST_SQUASHFS_INSTALL_CMDS
83 $(HOST_MAKE_ENV
) $(MAKE
) $(HOST_SQUASHFS_MAKE_ARGS
) \
84 -C
$(@D
)/squashfs-tools
/ INSTALL_DIR
=$(HOST_DIR
)/usr
/bin
install
87 $(eval
$(generic-package
))
88 $(eval
$(host-generic-package
))