056958724b
Per default, the fio package uses the "-march=native" GCC option. This is of course wildly inappropriate for cross-compilation and can result in illegal instructions. Thus we make sure fio will not use that compiler option by adding --disable-native to FIO_OPTS. Signed-off-by: Jens Maus <mail@jens-maus.de> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
48 lines
1021 B
Makefile
48 lines
1021 B
Makefile
################################################################################
|
|
#
|
|
# fio
|
|
#
|
|
################################################################################
|
|
|
|
FIO_VERSION = 3.34
|
|
FIO_SITE = http://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_DEPENDENCIES += 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))
|