You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
  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:=fio
  9. PKG_VERSION:=3.14
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://brick.kernel.dk/snaps
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_HASH:=1b4ce680242725df2fd3cca76047a4ebf07ed9034e2fa733ebb65ae8ed28fe10
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fio
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. SUBMENU:=Disc
  24. DEPENDS:=+libaio +zlib
  25. TITLE:=I/O testing and benchmarking tool
  26. URL:=https://github.com/axboe/fio
  27. endef
  28. define Package/fio/description
  29. Fio is an I/O testing tool that will spawn a number of threads or
  30. processes doing a particular type of I/O action as specified by
  31. the user. Fio can be driven by a 'job file' describing the I/O
  32. load one wants to simulate.
  33. endef
  34. TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
  35. TARGET_LDFLAGS += -Wl,--gc-sections
  36. CONFIGURE_ARGS = \
  37. --disable-numa \
  38. --disable-rdma \
  39. --disable-rados \
  40. --disable-http \
  41. --disable-rbd \
  42. --disable-gfapi \
  43. --disable-lex \
  44. --disable-pmem \
  45. --disable-native \
  46. --cc="$(TARGET_CC)" \
  47. --extra-cflags="$(TARGET_CFLAGS)" \
  48. --prefix="$(CONFIGURE_PREFIX)"
  49. define Package/fio/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fio $(1)/usr/bin/
  52. endef
  53. $(eval $(call BuildPackage,fio))