2013-06-21 00:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# squashfs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-01-31 00:17:51 +01:00
|
|
|
SQUASHFS_VERSION = 4.4
|
|
|
|
SQUASHFS_SITE = $(call github,plougher,squashfs-tools,$(SQUASHFS_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
SQUASHFS_LICENSE = GPL-2.0+
|
2014-06-24 20:55:43 +02:00
|
|
|
SQUASHFS_LICENSE_FILES = COPYING
|
2018-04-16 21:39:53 +02:00
|
|
|
SQUASHFS_MAKE_ARGS = XATTR_SUPPORT=1
|
2010-09-20 16:19:26 +02:00
|
|
|
|
2014-05-15 23:31:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZ4),y)
|
|
|
|
SQUASHFS_DEPENDENCIES += lz4
|
|
|
|
SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=1 COMP_DEFAULT=lz4
|
|
|
|
else
|
|
|
|
SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=0
|
|
|
|
endif
|
|
|
|
|
2010-09-20 22:05:39 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA),y)
|
|
|
|
SQUASHFS_DEPENDENCIES += xz
|
2011-03-04 15:10:14 +01:00
|
|
|
SQUASHFS_MAKE_ARGS += LZMA_XZ_SUPPORT=1 COMP_DEFAULT=lzma
|
|
|
|
else
|
|
|
|
SQUASHFS_MAKE_ARGS += LZMA_XZ_SUPPORT=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_XZ),y)
|
|
|
|
SQUASHFS_DEPENDENCIES += xz
|
2011-03-03 11:49:57 +01:00
|
|
|
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=1 COMP_DEFAULT=xz
|
2010-09-20 16:19:26 +02:00
|
|
|
else
|
2010-09-20 22:05:39 +02:00
|
|
|
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=0
|
2010-09-20 16:19:26 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZO),y)
|
|
|
|
SQUASHFS_DEPENDENCIES += lzo
|
2010-09-20 22:05:39 +02:00
|
|
|
SQUASHFS_MAKE_ARGS += LZO_SUPPORT=1 COMP_DEFAULT=lzo
|
2010-09-20 16:19:26 +02:00
|
|
|
else
|
|
|
|
SQUASHFS_MAKE_ARGS += LZO_SUPPORT=0
|
|
|
|
endif
|
|
|
|
|
2018-04-16 21:39:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_ZSTD),y)
|
|
|
|
SQUASHFS_DEPENDENCIES += zstd
|
|
|
|
SQUASHFS_MAKE_ARGS += ZSTD_SUPPORT=1 COMP_DEFAULT=zstd
|
|
|
|
else
|
|
|
|
SQUASHFS_MAKE_ARGS += ZSTD_SUPPORT=0
|
|
|
|
endif
|
|
|
|
|
2010-09-20 22:05:39 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_GZIP),y)
|
|
|
|
SQUASHFS_DEPENDENCIES += zlib
|
|
|
|
SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=1 COMP_DEFAULT=gzip
|
|
|
|
else
|
|
|
|
SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=0
|
|
|
|
endif
|
|
|
|
|
2018-04-16 21:39:50 +02:00
|
|
|
HOST_SQUASHFS_DEPENDENCIES = host-zlib host-lz4 host-lzo host-xz host-zstd
|
2010-09-20 16:19:26 +02:00
|
|
|
|
|
|
|
HOST_SQUASHFS_MAKE_ARGS = \
|
2015-11-20 14:34:15 +01:00
|
|
|
XATTR_SUPPORT=1 \
|
2017-04-21 17:24:48 +02:00
|
|
|
XZ_SUPPORT=1 \
|
|
|
|
GZIP_SUPPORT=1 \
|
|
|
|
LZ4_SUPPORT=1 \
|
|
|
|
LZO_SUPPORT=1 \
|
2018-04-09 22:04:24 +02:00
|
|
|
LZMA_XZ_SUPPORT=1 \
|
2018-04-16 21:39:50 +02:00
|
|
|
ZSTD_SUPPORT=1
|
2010-03-02 00:14:33 +01:00
|
|
|
|
|
|
|
define SQUASHFS_BUILD_CMDS
|
2017-04-21 17:24:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) \
|
|
|
|
CC="$(TARGET_CC)" \
|
2017-07-25 20:28:15 +02:00
|
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) -fgnu89-inline" \
|
2014-10-23 10:43:37 +02:00
|
|
|
EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
$(SQUASHFS_MAKE_ARGS) \
|
|
|
|
-C $(@D)/squashfs-tools/
|
2010-03-02 00:14:33 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SQUASHFS_INSTALL_TARGET_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(SQUASHFS_MAKE_ARGS) \
|
|
|
|
-C $(@D)/squashfs-tools/ INSTALL_DIR=$(TARGET_DIR)/usr/bin install
|
2010-03-02 00:14:33 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_SQUASHFS_BUILD_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) \
|
|
|
|
CC="$(HOSTCC)" \
|
2017-04-21 17:24:48 +02:00
|
|
|
EXTRA_CFLAGS="$(HOST_CFLAGS)" \
|
2014-10-23 10:43:37 +02:00
|
|
|
EXTRA_LDFLAGS="$(HOST_LDFLAGS)" \
|
|
|
|
$(HOST_SQUASHFS_MAKE_ARGS) \
|
|
|
|
-C $(@D)/squashfs-tools/
|
2010-03-02 00:14:33 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_SQUASHFS_INSTALL_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_SQUASHFS_MAKE_ARGS) \
|
2017-07-05 13:14:19 +02:00
|
|
|
-C $(@D)/squashfs-tools/ INSTALL_DIR=$(HOST_DIR)/bin install
|
2010-03-02 00:14:33 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-generic-package))
|