diff options
| author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
|---|---|---|
| committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
| commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
| tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-benchmark | |
| download | poky-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')
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 @@ | |||
| 1 | Includes string.h to the file "zcav.cpp", because it uses the two functions: "strdup()" and "strcmp()". | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | Signed-off-by: Cindy Zhao <cindy.zhao@enea.com> | ||
| 6 | --- | ||
| 7 | zcav.cpp | 1 + | ||
| 8 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
| 9 | |||
| 10 | diff --git a/zcav.cpp b/zcav.cpp | ||
| 11 | index 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 | -- | ||
| 23 | 1.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 @@ | |||
| 1 | DESCRIPTION = "Tests large file IO and creation/deletion of small files." | ||
| 2 | HOMEPAGE = "http://www.coker.com.au/bonnie++/" | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://copyright.txt;md5=cd4dde95a6b9d122f0a9150ae9cc3ee0" | ||
| 5 | |||
| 6 | SRC_URI = "http://www.coker.com.au/bonnie++/bonnie++-${PV}.tgz \ | ||
| 7 | file://bonnie++_avoid_build_err.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | SRC_URI[md5sum] = "750aa5b5051263a99c6c195888c74968" | ||
| 11 | SRC_URI[sha256sum] = "cb3866116634bf65760b6806be4afa7e24a1cad6f145c876df8721f01ba2e2cb" | ||
| 12 | |||
| 13 | inherit autotools autotools-brokensep | ||
| 14 | |||
| 15 | SCRIPTS = "bon_csv2html bon_csv2txt" | ||
| 16 | EXES = "bonnie++ zcav" | ||
| 17 | |||
| 18 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 19 | |||
| 20 | do_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 | |||
| 27 | PACKAGES =+ "bonnie-scripts" | ||
| 28 | |||
| 29 | FILES_${PN} = "${sbindir}" | ||
| 30 | FILES_bonnie-scripts = "${bindir}" | ||
