mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 12:00:48 -09:00
The upstream uses pkg-config to detect and enable libnfs usage if it is found [1]. This can get confused by the host configuration so at the least we should disable detection if we are not planning to build with it. Note: the fio configure script accept both --enable-libnfs and --disable-libnfs since upstream commit [2], first included in fio v3.31. In Buildroot, this is supported since [3]. [1] https://github.com/axboe/fio/blob/fio-3.38/configure#L2360 [2]98ab12629c[3]256395d8e5Signed-off-by: Alex Bennée <alex.bennee@linaro.org> [Julien: add extra info in commit log] Signed-off-by: Julien Olivain <ju.o@free.fr>
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# fio
|
|
#
|
|
################################################################################
|
|
|
|
FIO_VERSION = 3.38
|
|
FIO_SITE = https://brick.kernel.dk/snaps
|
|
FIO_LICENSE = GPL-2.0
|
|
FIO_LICENSE_FILES = COPYING MORAL-LICENSE
|
|
|
|
FIO_OPTS = --disable-native --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBAIO),y)
|
|
FIO_DEPENDENCIES += libaio
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFS),y)
|
|
FIO_OPTS += --enable-libnfs
|
|
FIO_DEPENDENCIES += host-pkgconf libnfs
|
|
else
|
|
FIO_OPTS += --disable-libnfs
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBISCSI),y)
|
|
FIO_OPTS += --enable-libiscsi
|
|
FIO_DEPENDENCIES += host-pkgconf libiscsi
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NUMACTL),y)
|
|
FIO_DEPENDENCIES += numactl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
FIO_DEPENDENCIES += zlib
|
|
endif
|
|
|
|
define FIO_CONFIGURE_CMDS
|
|
(cd $(@D); $(TARGET_MAKE_ENV) ./configure $(FIO_OPTS))
|
|
endef
|
|
|
|
define FIO_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define FIO_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio
|
|
endef
|
|
|
|
$(eval $(generic-package))
|