From: Daniel Mack <daniel@caiaq.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add bonnie++-1.03e package
Date: Thu, 9 Jul 2009 12:48:49 +0200 [thread overview]
Message-ID: <1247136529-29913-1-git-send-email-daniel@caiaq.de> (raw)
Signed-off-by: Daniel Mack <daniel@caiaq.de>
---
package/Config.in | 1 +
package/bonnie++/Config.in | 10 +++++++
package/bonnie++/bonnie++.mk | 57 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 68 insertions(+), 0 deletions(-)
create mode 100644 package/bonnie++/Config.in
create mode 100644 package/bonnie++/bonnie++.mk
diff --git a/package/Config.in b/package/Config.in
index cb83563..e77cec9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -228,6 +228,7 @@ endmenu
menu "Hardware handling / blockdevices and filesystem maintenance"
source "package/acpid/Config.in"
+source "package/bonnie++/Config.in"
source "package/dbus/Config.in"
source "package/dbus-glib/Config.in"
source "package/dbus-python/Config.in"
diff --git a/package/bonnie++/Config.in b/package/bonnie++/Config.in
new file mode 100644
index 0000000..26648dd
--- /dev/null
+++ b/package/bonnie++/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_BONNIE
+ bool "bonnie++"
+ help
+ Bonnie++ is a benchmark suite that is aimed at performing a number
+ of simple tests of hard drive and file system performance. Then you
+ can decide which test is important and decide how to compare
+ different systems after running it.
+
+ http://www.coker.com.au/bonnie++/
+
diff --git a/package/bonnie++/bonnie++.mk b/package/bonnie++/bonnie++.mk
new file mode 100644
index 0000000..d44b2e2
--- /dev/null
+++ b/package/bonnie++/bonnie++.mk
@@ -0,0 +1,57 @@
+#############################################################
+#
+# bonnie
+#
+#############################################################
+BONNIE_VERSION:=1.03e
+BONNIE_SOURCE:=bonnie++-$(BONNIE_VERSION).tgz
+BONNIE_SITE:=http://www.coker.com.au/bonnie++/
+BONNIE_DIR:=$(BUILD_DIR)/bonnie++-$(BONNIE_VERSION)
+BONNIE_CAT:=$(ZCAT)
+BONNIE_BINARY:=bonnie++
+BONNIE_TARGET_BINARY:=usr/bin/bonnie++
+BONNIE_AUTORECONF=YES
+
+$(eval $(call AUTOTARGETS,package,bonnie))
+
+$(DL_DIR)/$(BONNIE_SOURCE):
+ $(call DOWNLOAD,$(BONNIE_SITE),$(BONNIE_SOURCE))
+
+bonnie-source: $(DL_DIR)/$(BONNIE_SOURCE)
+
+$(BONNIE_DIR)/.unpacked: $(DL_DIR)/$(BONNIE_SOURCE)
+ $(BONNIE_CAT) $(DL_DIR)/$(BONNIE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(CONFIG_UPDATE) $(BONNIE_DIR)
+ touch $@
+
+$(BONNIE_DIR)/.configured: $(BONNIE_DIR)/.unpacked
+ (cd $(BONNIE_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CONFIGURE_ARGS) \
+ ./configure \
+ --prefix=/ \
+ )
+ touch $@
+
+$(BONNIE_DIR)/$(BONNIE_BINARY): $(BONNIE_DIR)/.configured
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(BONNIE_DIR)
+
+$(TARGET_DIR)/$(BONNIE_TARGET_BINARY): $(BONNIE_DIR)/$(BONNIE_BINARY)
+ install -D $(BONNIE_DIR)/$(BONNIE_BINARY) $(TARGET_DIR)/$(BONNIE_TARGET_BINARY)
+
+bonnie: uclibc $(TARGET_DIR)/$(BONNIE_TARGET_BINARY)
+
+bonnie-clean:
+ rm -f $(TARGET_DIR)/$(BONNIE_TARGET_BINARY)
+ -$(MAKE) -C $(BONNIE_DIR) clean
+
+bonnie-dirclean:
+ rm -rf $(BONNIE_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(BR2_PACKAGE_BONNIE),y)
+TARGETS+=bonnie
+endif
--
1.6.3.1
next reply other threads:[~2009-07-09 10:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 10:48 Daniel Mack [this message]
2009-07-09 10:59 ` [Buildroot] [PATCH] Add bonnie++-1.03e package Daniel Mack
2009-07-12 20:20 ` Peter Korsgaard
2009-07-12 20:32 ` Daniel Mack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1247136529-29913-1-git-send-email-daniel@caiaq.de \
--to=daniel@caiaq.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox