2
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2009-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=squashfs4
  9. PKG_VERSION:=4.2
  10. PKG_SOURCE:=squashfs$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/squashfs
  12. PKG_HASH:=d9e0195aa922dbb665ed322b9aaa96e04a476ee650f39bbeadb0d00b24022e96
  13. PKG_CAT:=zcat
  14. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfs$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Host/Compile
  17. $(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
  18. CC="$(HOSTCC)" \
  19. XZ_SUPPORT=1 \
  20. LZMA_XZ_SUPPORT=1 \
  21. XATTR_SUPPORT= \
  22. LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
  23. EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
  24. mksquashfs unsquashfs
  25. endef
  26. define Host/Install
  27. $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs $(STAGING_DIR_HOST)/bin/mksquashfs4
  28. $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs $(STAGING_DIR_HOST)/bin/unsquashfs4
  29. endef
  30. define Host/Clean
  31. rm -f $(STAGING_DIR_HOST)/bin/mksquashfs4
  32. rm -f $(STAGING_DIR_HOST)/bin/unsquashfs4
  33. endef
  34. $(eval $(call HostBuild))