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.

58 lines
1.4 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.6
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dragan Stancevic <ds@codeminutia.com>
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE_URL:=http://brick.kernel.dk/snaps
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_HASH:=026a2cbb4a1bc9810f13f23d07eb146dbd4325bb467221dc49b88915ee8a52b4
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/fio
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. SUBMENU:=Disc
  22. DEPENDS:=+libaio +zlib
  23. TITLE:=I/O testing and benchmarking tool
  24. URL:=https://github.com/axboe/fio
  25. endef
  26. define Package/fio/description
  27. Fio is an I/O testing tool that will spawn a number of threads or
  28. processes doing a particular type of I/O action as specified by
  29. the user. Fio can be driven by a 'job file' describing the I/O
  30. load one wants to simulate.
  31. endef
  32. TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
  33. CONFIGURE_ARGS = \
  34. --disable-numa \
  35. --disable-rdma \
  36. --disable-rados \
  37. --disable-rbd \
  38. --disable-gfapi \
  39. --disable-lex \
  40. --disable-pmem \
  41. --disable-native \
  42. --cc="$(TARGET_CC)" \
  43. --extra-cflags="$(TARGET_CFLAGS)"
  44. define Package/fio/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fio $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,fio))