2006-06-27 00:44:04 +00:00
|
|
|
#
|
2012-08-10 19:26:50 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-06-27 00:44:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-06 03:34:52 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_NAME:=squashfs
|
|
|
|
PKG_VERSION:=3.0
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/squashfs
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=39dbda43cf118536deb746c7730b468702d514a19f4cfab73b710e32908ddf20
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_CAT:=zcat
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)$(PKG_VERSION)
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
|
2012-07-13 23:18:15 +00:00
|
|
|
CC="$(HOSTCC)" \
|
2017-10-24 11:22:09 +00:00
|
|
|
CFLAGS="$(HOST_CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I." \
|
2015-02-06 00:00:43 +00:00
|
|
|
CXX="$(CXX)" \
|
2007-08-07 00:04:25 +00:00
|
|
|
LZMAPATH=$(STAGING_DIR_HOST)/lib \
|
2008-06-16 11:32:13 +00:00
|
|
|
mksquashfs-lzma unsquashfs-lzma
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs-lzma $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs-lzma $(STAGING_DIR_HOST)/bin/
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mksquashfs-lzma
|
2008-06-16 11:32:13 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/unsquashfs-lzma
|
2006-09-24 20:49:31 +00:00
|
|
|
endef
|
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
$(eval $(call HostBuild))
|