summaryrefslogtreecommitdiffstats
path: root/meta/recipes-benchmark
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-benchmark
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-benchmark')
-rw-r--r--meta/recipes-benchmark/bonnie++/bonnie++/bonnie++_avoid_build_err.patch11
-rw-r--r--meta/recipes-benchmark/bonnie++/bonnie++/gcc-4.3-fixes.patch24
-rw-r--r--meta/recipes-benchmark/bonnie++/bonnie++_1.03e.bb30
3 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-benchmark/bonnie++/bonnie++/bonnie++_avoid_build_err.patch b/meta/recipes-benchmark/bonnie++/bonnie++/bonnie++_avoid_build_err.patch
new file mode 100644
index 0000000000..44cfff217c
--- /dev/null
+++ b/meta/recipes-benchmark/bonnie++/bonnie++/bonnie++_avoid_build_err.patch
@@ -0,0 +1,11 @@
1--- a/bonnie++.cpp 2015-02-05 16:26:02.783816592 +0100
2+++ b/bonnie++.cpp 2015-02-05 16:25:41.408724623 +0100
3@@ -162,6 +162,8 @@
4 #endif
5 )
6 {
7+ (void)sig;
8+ (void)unused;
9 if(SIGNAL_NUMBER == SIGXCPU)
10 fprintf(stderr, "Exceeded CPU usage.\n");
11 else if(SIGNAL_NUMBER == SIGXFSZ)
diff --git a/meta/recipes-benchmark/bonnie++/bonnie++/gcc-4.3-fixes.patch b/meta/recipes-benchmark/bonnie++/bonnie++/gcc-4.3-fixes.patch
new file mode 100644
index 0000000000..9f42df91ff
--- /dev/null
+++ b/meta/recipes-benchmark/bonnie++/bonnie++/gcc-4.3-fixes.patch
@@ -0,0 +1,24 @@
1Includes string.h to the file "zcav.cpp", because it uses the two functions: "strdup()" and "strcmp()".
2
3Upstream-Status: Pending
4
5Signed-off-by: Cindy Zhao <cindy.zhao@enea.com>
6---
7 zcav.cpp | 1 +
8 1 files changed, 1 insertions(+), 0 deletions(-)
9
10diff --git a/zcav.cpp b/zcav.cpp
11index 1c39d85..e4fc4f5 100644
12--- a/zcav.cpp
13+++ b/zcav.cpp
14@@ -15,6 +15,7 @@ using namespace std;
15 #else
16 #include <vector.h>
17 #endif
18+#include <string.h>
19
20 // Read the specified number of megabytes of data from the fd and return the
21 // amount of time elapsed in seconds.
22--
231.7.5.4
24
diff --git a/meta/recipes-benchmark/bonnie++/bonnie++_1.03e.bb b/meta/recipes-benchmark/bonnie++/bonnie++_1.03e.bb
new file mode 100644
index 0000000000..8a15add505
--- /dev/null
+++ b/meta/recipes-benchmark/bonnie++/bonnie++_1.03e.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "Tests large file IO and creation/deletion of small files."
2HOMEPAGE = "http://www.coker.com.au/bonnie++/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://copyright.txt;md5=cd4dde95a6b9d122f0a9150ae9cc3ee0"
5
6SRC_URI = "http://www.coker.com.au/bonnie++/bonnie++-${PV}.tgz \
7 file://bonnie++_avoid_build_err.patch \
8 "
9
10SRC_URI[md5sum] = "750aa5b5051263a99c6c195888c74968"
11SRC_URI[sha256sum] = "cb3866116634bf65760b6806be4afa7e24a1cad6f145c876df8721f01ba2e2cb"
12
13inherit autotools autotools-brokensep
14
15SCRIPTS = "bon_csv2html bon_csv2txt"
16EXES = "bonnie++ zcav"
17
18TARGET_CC_ARCH += "${LDFLAGS}"
19
20do_install () {
21 install -d ${D}/usr/bin
22 install -d ${D}/usr/sbin
23 install -m 0755 ${EXES} ${D}/usr/sbin
24 install -m 0755 ${SCRIPTS} ${D}/usr/bin
25}
26
27PACKAGES =+ "bonnie-scripts"
28
29FILES_${PN} = "${sbindir}"
30FILES_bonnie-scripts = "${bindir}"