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