Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_CONFIGURE_ARGS += \
  18. --disable-shared \
  19. --disable-elf-shlibs \
  20. --enable-static \
  21. --enable-dynamic-e2fsck \
  22. --disable-tls \
  23. --disable-nls
  24. define Host/Prepare
  25. $(call Host/Prepare/Default)
  26. rm -rf $(HOST_BUILD_DIR)/doc
  27. endef
  28. define Host/Install
  29. $(Host/Install/Default)
  30. $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
  31. mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
  32. $(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
  33. rm -rf $(STAGING_DIR_HOST)/include/uuid
  34. $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
  35. endef
  36. define Host/Clean
  37. rm -f $(STAGING_DIR_HOST)/bin/e2fsck
  38. rm -f $(STAGING_DIR_HOST)/bin/tune2fs
  39. endef
  40. $(eval $(call HostBuild))