2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 10:26:05 +01:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# iozone
|
2013-03-25 10:26:05 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 10:26:05 +01:00
|
|
|
|
|
|
|
IOZONE_VERSION = 3_414
|
|
|
|
IOZONE_SOURCE = iozone$(IOZONE_VERSION).tar
|
|
|
|
IOZONE_SITE = http://www.iozone.org/src/current
|
|
|
|
IOZONE_LICENSE = IOzone license (NO DERIVED WORKS ALLOWED)
|
|
|
|
# IOzone license details can be found at:
|
|
|
|
# http://www.iozone.org/docs/Iozone_License.txt
|
|
|
|
|
2013-06-14 20:14:46 +02:00
|
|
|
# No threading target is non-AIO as well
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
|
|
IOZONE_TARGET = linux-noth
|
|
|
|
# AIO support not available on uClibc, use the linux (non-aio) target.
|
2013-06-30 21:29:09 +02:00
|
|
|
else ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2013-06-14 20:14:46 +02:00
|
|
|
IOZONE_TARGET = linux-noaio
|
2013-03-25 10:26:05 +01:00
|
|
|
else
|
|
|
|
IOZONE_TARGET = linux
|
|
|
|
endif
|
|
|
|
|
|
|
|
define IOZONE_BUILD_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) $(IOZONE_TARGET) -C $(@D)/src/current
|
|
|
|
endef
|
|
|
|
|
|
|
|
define IOZONE_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/src/current/iozone \
|
|
|
|
$(TARGET_DIR)/usr/bin/iozone
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|