xref: /OK3568_Linux_fs/buildroot/package/iozone/iozone.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# iozone
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunIOZONE_VERSION = 3.492
8*4882a593SmuzhiyunIOZONE_SOURCE = iozone$(subst .,_,$(IOZONE_VERSION)).tgz
9*4882a593SmuzhiyunIOZONE_SITE = http://www.iozone.org/src/current
10*4882a593SmuzhiyunIOZONE_LICENSE = IOzone license (NO DERIVED WORKS ALLOWED)
11*4882a593Smuzhiyun# IOzone license details can be found at:
12*4882a593Smuzhiyun# http://www.iozone.org/docs/Iozone_License.txt
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun# AIO support not available on uClibc, use the linux (non-aio) target.
15*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
16*4882a593SmuzhiyunIOZONE_TARGET = linux-noaio
17*4882a593Smuzhiyunelse
18*4882a593SmuzhiyunIOZONE_TARGET = linux
19*4882a593Smuzhiyunendif
20*4882a593Smuzhiyun
21*4882a593Smuzhiyundefine IOZONE_BUILD_CMDS
22*4882a593Smuzhiyun	$(MAKE) $(TARGET_CONFIGURE_OPTS) $(IOZONE_TARGET) -C $(@D)/src/current
23*4882a593Smuzhiyunendef
24*4882a593Smuzhiyun
25*4882a593Smuzhiyundefine IOZONE_INSTALL_TARGET_CMDS
26*4882a593Smuzhiyun	$(INSTALL) -D -m 755 $(@D)/src/current/iozone \
27*4882a593Smuzhiyun		$(TARGET_DIR)/usr/bin/iozone
28*4882a593Smuzhiyun	$(INSTALL) -D -m 755 $(@D)/src/current/fileop \
29*4882a593Smuzhiyun		$(TARGET_DIR)/usr/bin/fileop
30*4882a593Smuzhiyunendef
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun$(eval $(generic-package))
33