2013-10-30 16:22:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# fio
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-21 19:57:24 +02:00
|
|
|
FIO_VERSION = fio-2.20
|
2013-10-30 16:22:25 +01:00
|
|
|
FIO_SITE = git://git.kernel.dk/fio.git
|
2017-03-30 15:43:32 +02:00
|
|
|
FIO_LICENSE = GPL-2.0 + special obligations
|
2016-01-30 11:30:54 +01:00
|
|
|
FIO_LICENSE_FILES = COPYING
|
2013-10-30 16:22:25 +01:00
|
|
|
|
2016-04-19 23:38:41 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBAIO),y)
|
|
|
|
FIO_DEPENDENCIES += libaio
|
|
|
|
endif
|
|
|
|
|
2016-07-23 19:30:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NUMACTL),y)
|
|
|
|
FIO_DEPENDENCIES += numactl
|
|
|
|
endif
|
|
|
|
|
2016-07-23 19:30:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
FIO_DEPENDENCIES += zlib
|
|
|
|
endif
|
|
|
|
|
2013-10-30 16:22:25 +01:00
|
|
|
define FIO_CONFIGURE_CMDS
|
2016-10-17 18:06:30 +02:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)")
|
2013-10-30 16:22:25 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define FIO_BUILD_CMDS
|
2016-10-17 18:06:30 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
2013-10-30 16:22:25 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define FIO_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|