1
0

Makefile 1.2 KB

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