You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
16 years ago
|
#
|
||
12 years ago
|
# Copyright (C) 2009-2012 OpenWrt.org
|
||
16 years ago
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
6 years ago
|
PKG_NAME:=squashfskit4
|
||
|
PKG_VERSION:=4.14
|
||
16 years ago
|
|
||
6 years ago
|
PKG_SOURCE:=squashfskit-v$(PKG_VERSION).tar.xz
|
||
|
PKG_SOURCE_URL:=https://github.com/squashfskit/squashfskit/releases/download/v$(PKG_VERSION)/
|
||
|
PKG_HASH:=5761aaa3aedc4f7112b708367d891c9abdc1ffea972e3fe47923ddba23984d95
|
||
16 years ago
|
|
||
6 years ago
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfskit-v$(PKG_VERSION)
|
||
16 years ago
|
|
||
|
include $(INCLUDE_DIR)/host-build.mk
|
||
|
|
||
|
define Host/Compile
|
||
7 years ago
|
+$(HOST_MAKE_VARS) \
|
||
16 years ago
|
$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
|
||
14 years ago
|
XZ_SUPPORT=1 \
|
||
|
LZMA_XZ_SUPPORT=1 \
|
||
|
XATTR_SUPPORT= \
|
||
16 years ago
|
LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
|
||
14 years ago
|
EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
|
||
16 years ago
|
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))
|