From baebf863ea11dbbcfea55a5877f4be0e85c1f37b Mon Sep 17 00:00:00 2001 From: "gilles.talis@gmail.com" Date: Mon, 25 Mar 2013 09:26:05 +0000 Subject: IOzone: new package [Peter: lower case package name, strip trailing newline] Signed-off-by: Gilles Talis Acked-by: Gustavo Zacarias Tested-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/iozone/iozone.mk | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/iozone/iozone.mk (limited to 'package/iozone/iozone.mk') diff --git a/package/iozone/iozone.mk b/package/iozone/iozone.mk new file mode 100644 index 000000000..71c6840fe --- /dev/null +++ b/package/iozone/iozone.mk @@ -0,0 +1,38 @@ +############################################################# +# +# IOZONE +# +############################################################# + +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 + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y) +# aio.h is not available on uClibc. Select "generic" target that does not use it. +IOZONE_TARGET = generic +else ifeq ($(BR2_powerpc),y) +IOZONE_TARGET = linux-powerpc +else ifeq ($(BR2_sparc),y) +IOZONE_TARGET = linux-sparc +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 + +define IOZONE_CLEAN_CMDS + $(MAKE) -C $(@D)/src/current clean +endef + +$(eval $(generic-package)) -- cgit v1.2.3