Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_CPE_ID:=cpe:/a:e2fsprogs_project:e2fsprogs
  10. PKG_VERSION:=1.47.0
  11. PKG_HASH:=144af53f2bbd921cef6f8bea88bb9faddca865da3fbc657cc9b4d2001097d5db
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. ifneq ($(shell $(HOSTCC) --version | grep clang),)
  18. HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0 -Dloff_t=off_t
  19. endif
  20. HOST_CFLAGS += $(HOST_FPIC)
  21. HOST_CONFIGURE_ARGS += \
  22. --disable-elf-shlibs \
  23. --enable-libuuid \
  24. --disable-tls \
  25. --disable-nls \
  26. --enable-threads=pth
  27. define Host/Prepare
  28. $(call Host/Prepare/Default)
  29. rm -rf $(HOST_BUILD_DIR)/doc
  30. endef
  31. define Host/Install
  32. $(Host/Install/Default)
  33. $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
  34. mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
  35. $(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
  36. rm -rf $(STAGING_DIR_HOST)/include/uuid
  37. $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
  38. endef
  39. define Host/Clean
  40. rm -f $(STAGING_DIR_HOST)/bin/e2fsck
  41. rm -f $(STAGING_DIR_HOST)/bin/tune2fs
  42. endef
  43. $(eval $(call HostBuild))