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.

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