Makefile 1.3 KB

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