fio.mk 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ################################################################################
  2. #
  3. # fio
  4. #
  5. ################################################################################
  6. FIO_VERSION = 3.34
  7. FIO_SITE = http://brick.kernel.dk/snaps
  8. FIO_LICENSE = GPL-2.0
  9. FIO_LICENSE_FILES = COPYING MORAL-LICENSE
  10. FIO_OPTS = --disable-native --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)"
  11. ifeq ($(BR2_PACKAGE_LIBAIO),y)
  12. FIO_DEPENDENCIES += libaio
  13. endif
  14. ifeq ($(BR2_PACKAGE_LIBNFS),y)
  15. FIO_DEPENDENCIES += libnfs
  16. endif
  17. ifeq ($(BR2_PACKAGE_LIBISCSI),y)
  18. FIO_OPTS += --enable-libiscsi
  19. FIO_DEPENDENCIES += host-pkgconf libiscsi
  20. endif
  21. ifeq ($(BR2_PACKAGE_NUMACTL),y)
  22. FIO_DEPENDENCIES += numactl
  23. endif
  24. ifeq ($(BR2_PACKAGE_ZLIB),y)
  25. FIO_DEPENDENCIES += zlib
  26. endif
  27. define FIO_CONFIGURE_CMDS
  28. (cd $(@D); $(TARGET_MAKE_ENV) ./configure $(FIO_OPTS))
  29. endef
  30. define FIO_BUILD_CMDS
  31. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
  32. endef
  33. define FIO_INSTALL_TARGET_CMDS
  34. $(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio
  35. endef
  36. $(eval $(generic-package))