From patchwork Tue May 29 20:48:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 161801 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 2A373B6FD9 for ; Wed, 30 May 2012 06:48:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A180510BBCB; Tue, 29 May 2012 20:48:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zwvdJ42DZDkP; Tue, 29 May 2012 20:48:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4DFEF10BBBB; Tue, 29 May 2012 20:48:49 +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 8F4888F753 for ; Tue, 29 May 2012 20:48:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8245A8FA39 for ; Tue, 29 May 2012 20:48:48 +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 vDG0SD3j9Q1w for ; Tue, 29 May 2012 20:48:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [74.118.36.95]) by whitealder.osuosl.org (Postfix) with ESMTPS id F2FDE8FA35 for ; Tue, 29 May 2012 20:48:46 +0000 (UTC) Received: from asgard (host235.190-30-7.telecom.net.ar [190.30.7.235]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id q4TKmecr014774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 May 2012 17:48:43 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1338324524; bh=W4EIu3OkYahgTxRNRk+YBHoV/l3qdGDEDvWABVAb4qA=; h=From:To:Cc:Subject:Date:Message-Id; b=HDfJCpffDI1b+Gz12/WZ58beGJcg/PPKFSDcl44a5yF5xZc1553zapXddlM2yz2SM 3jgOZ9IWOQ8XLmIDEPSxOtrJ65KtQXPvOO5OXzOcIEfm4Gpt3WBKBaQgPuQeixYxmY bqDB/NJkucxUkPrXxIE4LCoAUwaDeRX9CCIkSe30= Received: by asgard (sSMTP sendmail emulation); Tue, 29 May 2012 17:48:39 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Tue, 29 May 2012 17:48:38 -0300 Message-Id: <1338324518-5281-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.3.4 X-Virus-Scanned: clamav-milter 0.97.3 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] ramspeed: 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: Gustavo Zacarias --- package/Config.in | 1 + package/ramspeed/Config.in | 7 +++++++ package/ramspeed/Makefile | 14 ++++++++++++++ package/ramspeed/ramspeed.mk | 28 ++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 0 deletions(-) create mode 100644 package/ramspeed/Config.in create mode 100644 package/ramspeed/Makefile create mode 100644 package/ramspeed/ramspeed.mk diff --git a/package/Config.in b/package/Config.in index a3c92ec..4ddb865 100644 --- a/package/Config.in +++ b/package/Config.in @@ -35,6 +35,7 @@ source "package/ltrace/Config.in" source "package/memstat/Config.in" source "package/netperf/Config.in" source "package/oprofile/Config.in" +source "package/ramspeed/Config.in" source "package/rt-tests/Config.in" source "package/strace/Config.in" source "package/stress/Config.in" diff --git a/package/ramspeed/Config.in b/package/ramspeed/Config.in new file mode 100644 index 0000000..b236329 --- /dev/null +++ b/package/ramspeed/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_RAMSPEED + bool "ramspeed" + help + RAMspeed is a free open source command line utility + to measure cache and memory performance. + + http://alasir.com/software/ramspeed/ diff --git a/package/ramspeed/Makefile b/package/ramspeed/Makefile new file mode 100644 index 0000000..acb8cfd --- /dev/null +++ b/package/ramspeed/Makefile @@ -0,0 +1,14 @@ + +all: generic + +generic: ramspeed.c fltmem.c fltmark.c intmem.c intmark.c + $(CC) $(CFLAGS) $^ -o ramspeed + +i386: ramspeed.c i386/*.s i386/cpuinfo/*.s + $(CC) $(CFLAGS) -DI386_ASM $^ -o ramspeed + +x86_64: ramspeed.c amd64/*.s + $(CC) $(CFLAGS) -DAMD64_ASM $^ -o ramspeed + +clean: + rm -f *.o ramspeed diff --git a/package/ramspeed/ramspeed.mk b/package/ramspeed/ramspeed.mk new file mode 100644 index 0000000..ef48e30 --- /dev/null +++ b/package/ramspeed/ramspeed.mk @@ -0,0 +1,28 @@ +############################################################# +# +# ramspeed +# +############################################################# + +RAMSPEED_VERSION = 2.6.0 +RAMSPEED_SITE = http://www.alasir.com/software/ramspeed + +ifeq ($(BR2_i386),y) +RAMSPEED_ARCH = i386 +else +ifeq ($(BR2_x864_64),y) +RAMSPEED_ARCH = x86_64 +endif +endif + +define RAMSPEED_BUILD_CMDS + cp -f package/ramspeed/Makefile $(@D); \ + CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ + make -C $(@D) $(RAMSPEED_ARCH) +endef + +define RAMSPEED_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/ramspeed $(TARGET_DIR)/usr/bin/ramspeed +endef + +$(eval $(call GENTARGETS))