Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2010-2013 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.42.8
  10. PKG_MD5SUM:=8ef664b6eb698aa6b733df59b17b9ed4
  11. PKG_RELEASE:=1
  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_LDFLAGS += $(HOST_STATIC_LINKING)
  18. HOST_CONFIGURE_ARGS += \
  19. --disable-shared \
  20. --disable-elf-shlibs \
  21. --enable-static \
  22. --enable-dynamic-e2fsck \
  23. --disable-tls \
  24. --disable-nls
  25. define Host/Prepare
  26. $(call Host/Prepare/Default)
  27. rm -rf $(HOST_BUILD_DIR)/doc
  28. endef
  29. define Host/Install
  30. $(Host/Install/Default)
  31. $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
  32. mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
  33. $(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
  34. rm -rf $(STAGING_DIR_HOST)/include/uuid
  35. $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
  36. endef
  37. define Host/Clean
  38. rm -f $(STAGING_DIR_HOST)/bin/e2fsck
  39. rm -f $(STAGING_DIR_HOST)/bin/tune2fs
  40. endef
  41. $(eval $(call HostBuild))