[oe] [meta-oe] [PATCH 1/3] benchmarks:Added recipe for whetstone benchmarks

Mubin Sayyed mubin.usman.sayyed at xilinx.com
Tue Aug 23 13:02:19 UTC 2016


This patch adds recipe for whestone benchmarks.
Whestone benchmarks measures CPU's floating-point
arithmetic performance

Signed-off-by: Mubin Sayyed <mubinusm at xilinx.com>
---
 .../recipes-benchmark/whetstone/whetstone_1.0.bb   | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb

diff --git a/meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb b/meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
new file mode 100644
index 0000000..e6f51cb
--- /dev/null
+++ b/meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "CPU benchmark to measure floating point performance"
+HOMEPAGE = "https://en.wikipedia.org/wiki/Whetstone_(benchmark)"
+SECTION = "benchmark/tests"
+
+LICENSE = "GPLv1"
+LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
+
+SRC_URI = "http://www.netlib.org/benchmark/whetstone.c"
+SRC_URI[md5sum] = "d8eb2cd7104bb5a12d614ac6d3f1f9fb"
+SRC_URI[sha256sum] = "333e4ceca042c146f63eec605573d16ae8b07166cbc44a17bec1ea97c6f1efbf"
+
+S = "${WORKDIR}"
+
+do_compile () {
+	${CC} -O3 -Ofast -o whetstone whetstone.c -lm 
+}
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0755 whetstone ${D}${bindir}	
+}
+
-- 
1.9.1




More information about the Openembedded-devel mailing list