2 # Copyright (C) 2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://brick.kernel.dk
/snaps
16 PKG_HASH
:=a5a28f19c701d4c8e04924bec1b85f6ac8c67fc8fe75968a5d6990e0b656a7a7
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
31 DEPENDS
:=+libaio
+zlib
32 TITLE
:=I
/O testing and benchmarking tool
33 URL
:=https
://github.com
/axboe
/fio
36 define Package
/fio
/description
37 Fio is an I
/O testing tool that will spawn a number of threads or
38 processes doing a particular type of I
/O action
as specified by
39 the user. Fio can be driven by a
'job file' describing the I
/O
40 load one wants to simulate.
43 TARGET_CFLAGS
:= $(filter-out -O
%,$(TARGET_CFLAGS
))
44 TARGET_LDFLAGS
+= -Wl
,--gc-sections
57 --disable-optimizations \
60 --extra-cflags
="$(TARGET_CFLAGS)" \
61 --prefix="$(CONFIGURE_PREFIX)"
63 define Package
/fio
/install
64 $(INSTALL_DIR
) $(1)/usr
/bin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/fio
$(1)/usr
/bin
/
68 $(eval
$(call BuildPackage
,fio
))