2013-10-30 16:22:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# fio
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-09-23 21:11:01 +02:00
|
|
|
FIO_VERSION = 3.16
|
2019-09-16 18:51:02 +02:00
|
|
|
FIO_SITE = http://brick.kernel.dk/snaps
|
2018-09-09 21:50:23 +02:00
|
|
|
FIO_LICENSE = GPL-2.0
|
|
|
|
FIO_LICENSE_FILES = COPYING MORAL-LICENSE
|
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))
|