Makefile 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (C) 2010 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.41.12
  10. PKG_MD5SUM:=1b24a21fc0c2381ef420961cbfec733f
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/e2fsprogs
  14. include $(INCLUDE_DIR)/host-build.mk
  15. TARGET_CFLAGS += $(FPIC)
  16. CONFIGURE_ARGS += \
  17. --disable-shared \
  18. --enable-static \
  19. --disable-rpath \
  20. --enable-elf-shlibs \
  21. --enable-dynamic-e2fsck \
  22. --disable-tls
  23. define Host/Install
  24. $(Host/Install/Default)
  25. $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
  26. $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
  27. endef
  28. define Host/Clean
  29. rm -f $(STAGING_DIR_HOST)/bin/e2fsck
  30. rm -f $(STAGING_DIR_HOST)/bin/tune2fs
  31. endef
  32. $(eval $(call HostBuild))