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.

68 lines
1.6 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.29
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://brick.kernel.dk/snaps
  13. PKG_HASH:=acffb407d14e973321ada4cf234b2840a94fff7989350cfe62142daba79e6786
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-or-later
  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. --disable-shm \
  47. --disable-optimizations \
  48. --disable-tcmalloc \
  49. --cc="$(TARGET_CC)" \
  50. --extra-cflags="$(TARGET_CFLAGS)" \
  51. --prefix="$(CONFIGURE_PREFIX)"
  52. define Package/fio/install
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fio $(1)/usr/bin/
  55. endef
  56. $(eval $(call BuildPackage,fio))