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
|
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
|
2011-04-03 01:02:00 +00:00
|
|
|
PKG_MD5SUM:=1b7a781fb4cf8938842279bd3e8ee852
|
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" \
|
2012-08-12 13:27:49 +00:00
|
|
|
EXTRA_LDFLAGS="$(HOST_STATIC_LINKING)" \
|
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))
|