include $(TOPDIR)/rules.mk
PKG_NAME:=fio
-PKG_VERSION:=3.37
+PKG_VERSION:=3.42
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://brick.kernel.dk/snaps
-PKG_HASH:=88f0fd6549ca07f7387e784a91706ab11e36d5c12ec26540f1b2d33c6f2d8327
+PKG_HASH:=ac126c69fde515a3da3f71817562715df9001e79f2008ed98a17eac340cd3f66
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Disc
- DEPENDS:=+libaio +zlib
+ DEPENDS:=+libaio +zlib +libatomic
TITLE:=I/O testing and benchmarking tool
URL:=https://github.com/axboe/fio
endef
endef
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
-TARGET_LDFLAGS += -Wl,--gc-sections
+TARGET_LDFLAGS += -Wl,--gc-sections -latomic
CONFIGURE_ARGS = \
--disable-numa \
--extra-cflags="$(TARGET_CFLAGS)" \
--prefix="$(CONFIGURE_PREFIX)"
+define Build/Prepare
+ $(call Build/Prepare/Default)
+ $(SED) '/#include <linux\/prctl.h>/d' $(PKG_BUILD_DIR)/backend.c
+endef
+
define Package/fio/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fio $(1)/usr/bin/
--- /dev/null
+#!/bin/sh
+
+case "$1" in
+ fio)
+ # null ioengine discards all I/O — quick sanity check with no disk access
+ fio --name=sanity --ioengine=null --rw=randwrite --size=64k \
+ --bs=4k --iodepth=1 --numjobs=1 2>&1 | grep -qF "sanity"
+ ;;
+esac