2009-05-15 12:07:21 +00:00
|
|
|
#
|
2012-08-10 19:26:52 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-05-15 12:07:21 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=squashfs4
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:phillip_lougher:squashfs
|
2011-04-03 01:02:00 +00:00
|
|
|
PKG_VERSION:=4.2
|
2009-05-15 12:07:21 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=squashfs$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/squashfs
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=d9e0195aa922dbb665ed322b9aaa96e04a476ee650f39bbeadb0d00b24022e96
|
2009-05-15 12:07:21 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfs$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
|
2012-07-13 23:18:15 +00:00
|
|
|
CC="$(HOSTCC)" \
|
2011-04-03 01:02:00 +00:00
|
|
|
XZ_SUPPORT=1 \
|
|
|
|
LZMA_XZ_SUPPORT=1 \
|
|
|
|
XATTR_SUPPORT= \
|
2009-05-17 00:57:52 +00:00
|
|
|
LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
|
2011-04-03 01:02:00 +00:00
|
|
|
EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
|
2009-05-15 12:07:21 +00:00
|
|
|
mksquashfs unsquashfs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs $(STAGING_DIR_HOST)/bin/mksquashfs4
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs $(STAGING_DIR_HOST)/bin/unsquashfs4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mksquashfs4
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/unsquashfs4
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|