Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / utils / fio / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fio
11 PKG_VERSION:=3.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://brick.kernel.dk/snaps
16 PKG_HASH:=87a539ecebce3d8281ff9c653e9978302f91c72534273e85ef37a980ac5398d7
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/fio
28 SECTION:=utils
29 CATEGORY:=Utilities
30 SUBMENU:=Disc
31 DEPENDS:=+libaio +zlib
32 TITLE:=I/O testing and benchmarking tool
33 URL:=https://github.com/axboe/fio
34 endef
35
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.
41 endef
42
43 TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
44 TARGET_LDFLAGS += -Wl,--gc-sections
45
46 CONFIGURE_ARGS = \
47 --disable-numa \
48 --disable-rdma \
49 --disable-rados \
50 --disable-http \
51 --disable-rbd \
52 --disable-gfapi \
53 --disable-lex \
54 --disable-pmem \
55 --disable-native \
56 --disable-shm \
57 --disable-optimizations \
58 --disable-tcmalloc \
59 --cc="$(TARGET_CC)" \
60 --extra-cflags="$(TARGET_CFLAGS)" \
61 --prefix="$(CONFIGURE_PREFIX)"
62
63 define Package/fio/install
64 $(INSTALL_DIR) $(1)/usr/bin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fio $(1)/usr/bin/
66 endef
67
68 $(eval $(call BuildPackage,fio))