Makefile 1.2 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.44.1
  10. PKG_HASH:=0ca164c1c87724df904c918b2d7051ef989b51de725db66c67514dbe6dd2b9ef
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
  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))