xref: /OK3568_Linux_fs/buildroot/package/fio/fio.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# fio
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunFIO_VERSION = 3.28
8*4882a593SmuzhiyunFIO_SITE = http://brick.kernel.dk/snaps
9*4882a593SmuzhiyunFIO_LICENSE = GPL-2.0
10*4882a593SmuzhiyunFIO_LICENSE_FILES = COPYING MORAL-LICENSE
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBAIO),y)
13*4882a593SmuzhiyunFIO_DEPENDENCIES += libaio
14*4882a593Smuzhiyunendif
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBNFS),y)
17*4882a593SmuzhiyunFIO_DEPENDENCIES += libnfs
18*4882a593Smuzhiyunendif
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NUMACTL),y)
21*4882a593SmuzhiyunFIO_DEPENDENCIES += numactl
22*4882a593Smuzhiyunendif
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZLIB),y)
25*4882a593SmuzhiyunFIO_DEPENDENCIES += zlib
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyundefine FIO_CONFIGURE_CMDS
29*4882a593Smuzhiyun	(cd $(@D); $(TARGET_MAKE_ENV) ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)")
30*4882a593Smuzhiyunendef
31*4882a593Smuzhiyun
32*4882a593Smuzhiyundefine FIO_BUILD_CMDS
33*4882a593Smuzhiyun	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
34*4882a593Smuzhiyunendef
35*4882a593Smuzhiyun
36*4882a593Smuzhiyundefine FIO_INSTALL_TARGET_CMDS
37*4882a593Smuzhiyun	$(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio
38*4882a593Smuzhiyunendef
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun$(eval $(generic-package))
41