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
|
|
|
|
|
2018-12-12 15:10:42 +00:00
|
|
|
PKG_NAME:=squashfskit4
|
|
|
|
PKG_VERSION:=4.14
|
2009-05-15 12:07:21 +00:00
|
|
|
|
2018-12-12 15:10:42 +00:00
|
|
|
PKG_SOURCE:=squashfskit-v$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/squashfskit/squashfskit/releases/download/v$(PKG_VERSION)/
|
|
|
|
PKG_HASH:=5761aaa3aedc4f7112b708367d891c9abdc1ffea972e3fe47923ddba23984d95
|
2009-05-15 12:07:21 +00:00
|
|
|
|
2018-12-12 15:10:42 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfskit-v$(PKG_VERSION)
|
2009-05-15 12:07:21 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Host/Compile
|
2018-04-15 17:24:02 +00:00
|
|
|
+$(HOST_MAKE_VARS) \
|
2009-05-15 12:07:21 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
|
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))
|