Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2010-2015 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:=e2fsprogs
  9. PKG_VERSION:=1.43.3
  10. PKG_HASH:=ce8ef1bbb0d4730f170167284fda156ac9d6bf18db2750eb94af619a81b19927
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/e2fsprogs
  14. HOST_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/host-build.mk
  16. HOST_CFLAGS += $(FPIC)
  17. HOST_CONFIGURE_ARGS += \
  18. --disable-elf-shlibs \
  19. --enable-libuuid \
  20. --disable-tls \
  21. --disable-nls
  22. define Host/Prepare
  23. $(call Host/Prepare/Default)
  24. rm -rf $(HOST_BUILD_DIR)/doc
  25. endef
  26. define Host/Install
  27. $(Host/Install/Default)
  28. $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
  29. mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
  30. $(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
  31. rm -rf $(STAGING_DIR_HOST)/include/uuid
  32. $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
  33. endef
  34. define Host/Clean
  35. rm -f $(STAGING_DIR_HOST)/bin/e2fsck
  36. rm -f $(STAGING_DIR_HOST)/bin/tune2fs
  37. endef
  38. $(eval $(call HostBuild))