From patchwork Mon Mar 25 19:26:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 230980 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id E34322C009D for ; Tue, 26 Mar 2013 06:26:19 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6DA928644B; Mon, 25 Mar 2013 19:26:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E2nedBWc-Dwj; Mon, 25 Mar 2013 19:26:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 23AA8896A0; Mon, 25 Mar 2013 19:26:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8B1558F7A2 for ; Mon, 25 Mar 2013 19:26:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D27398644B for ; Mon, 25 Mar 2013 19:26:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78cLKo3WFdua for ; Mon, 25 Mar 2013 19:26:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7C3798AEC4 for ; Mon, 25 Mar 2013 19:26:12 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id mc8so986191pbc.0 for ; Mon, 25 Mar 2013 12:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=k/YfG3mNidjftvm3hvc/IRPBn8U5M4ii6keWqTStmqM=; b=l3Tj5x6wsXK3aIY60caWS57AAF2c4dZqM1YsH9RcvlCeKmaM7c2RfcsXuvaBnQuWyE 8TmvVZTTZTmg/VgBO+SR/GbVAj0Q5SjIw0hwmfmSNdX93bWFZ74NEycjI9IqfoTFvh6k 2f3ArAZYemvTtGF2+tvuz6DlJ6LJzzxgenJVPR5xY1ltfWKsw41IzwX+jqW/qUuDzsu6 luOcM57KuHn9ePi2McsBlful8QmwnAfxTFzbTVKtsc+KRj/MgbZjxESuHVYnRNeE+YRO TyXKsNOTlGmhN1hvM40jrIqMBQfaWHcO76giVUOR+gq1mt9NJ/rzsjW5SV/PjxCTEzF4 MRzg== X-Received: by 10.66.156.68 with SMTP id wc4mr19666621pab.58.1364239572200; Mon, 25 Mar 2013 12:26:12 -0700 (PDT) Received: from localhost.localdomain ([72.166.5.70]) by mx.google.com with ESMTPS id u9sm15879118paf.22.2013.03.25.12.26.11 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 25 Mar 2013 12:26:11 -0700 (PDT) From: Gilles Talis To: buildroot@busybox.net Date: Mon, 25 Mar 2013 12:26:05 -0700 Message-Id: <1364239565-22135-1-git-send-email-gilles.talis@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: Subject: [Buildroot] [PATCH v2] IOzone: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Gilles Talis Acked-by: Gustavo Zacarias Tested-by: Gustavo Zacarias --- Changes since V1: * Removed erroneous use of IA64 build target * Used generic build target for uClibc-based toolchains * Factorized linux-arm and linux build targets package/Config.in | 1 + package/iozone/Config.in | 13 +++++++++++++ package/iozone/iozone.mk | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 package/iozone/Config.in create mode 100644 package/iozone/iozone.mk diff --git a/package/Config.in b/package/Config.in index be1aa99..766b9ae 100644 --- a/package/Config.in +++ b/package/Config.in @@ -22,6 +22,7 @@ source "package/cache-calibrator/Config.in" source "package/dhrystone/Config.in" source "package/dstat/Config.in" source "package/dmalloc/Config.in" +source "package/iozone/Config.in" source "package/kexec/Config.in" source "package/latencytop/Config.in" source "package/lmbench/Config.in" diff --git a/package/iozone/Config.in b/package/iozone/Config.in new file mode 100644 index 0000000..b6dfb18 --- /dev/null +++ b/package/iozone/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_IOZONE + bool "IOzone" + depends on BR2_LARGEFILE + depends on BR2_USE_MMU # fork() + help + IOzone is a filesystem benchmark tool. + The benchmark generates and measures a variety of file operations + + http://www.iozone.org/ + +comment "IOzone requires a toolchain with LARGEFILE support" + depends on !BR2_LARGEFILE + diff --git a/package/iozone/iozone.mk b/package/iozone/iozone.mk new file mode 100644 index 0000000..24ba515 --- /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))