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.

60 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.12
  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:=f73ec0a84834a058adcaf9964eb7e9a7af0a6e41a4e5eff781438c12b99b3b9d
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_LICENSE_FILES:=COPYING
  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-http \
  38. --disable-rbd \
  39. --disable-gfapi \
  40. --disable-lex \
  41. --disable-pmem \
  42. --disable-native \
  43. --cc="$(TARGET_CC)" \
  44. --extra-cflags="$(TARGET_CFLAGS)"
  45. define Package/fio/install
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fio $(1)/usr/bin/
  48. endef
  49. $(eval $(call BuildPackage,fio))