summaryrefslogtreecommitdiff
path: root/recipes-benchmark
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2018-11-06 15:55:01 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2019-05-02 19:04:46 +0200
commitc01cfe56d8b093c11888769b6adecf4807c66041 (patch)
tree97cf74a391eb314eae96bef85ecb51c21f156597 /recipes-benchmark
parent4ed69a5eda94110fcb301940751d09bcdfe76762 (diff)
cpuburn: add a cortex-a53 version
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 832e3954f29df6ce1f5cc385ebefa2ef7f27ebd0)
Diffstat (limited to 'recipes-benchmark')
-rw-r--r--recipes-benchmark/cpuburn/cpuburn-a53_git.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-benchmark/cpuburn/cpuburn-a53_git.bb b/recipes-benchmark/cpuburn/cpuburn-a53_git.bb
new file mode 100644
index 0000000..331c8c7
--- /dev/null
+++ b/recipes-benchmark/cpuburn/cpuburn-a53_git.bb
@@ -0,0 +1,43 @@
+SUMMARY = "CPU burn app that loads the NEON coprocessor fully"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://cpuburn-a53.S;md5=a32d75f7e1fa9afbb887bef71d89875a"
+
+DL_DIR_append = "/${PN}-${PV}"
+
+# Ensure to make this available for machine which has neon
+COMPATIBLE_MACHINE = "(${@bb.utils.contains("TUNE_FEATURES", "aarch64", "${MACHINE}", "Invalid!", d)})"
+
+SRC_URI = "http://hardwarebug.org/files/burn.S;name=mru \
+ https://raw.githubusercontent.com/ssvb/cpuburn-arm/dd5c5ba58d2b0b23cfab4a286f9d3f5510000f20/cpuburn-a8.S;name=ssvb \
+ https://raw.githubusercontent.com/ssvb/cpuburn-arm/ad7e646700d14b81413297bda02fb7fe96613c3f/cpuburn-a53.S;name=ssvb53 \
+"
+
+SRC_URI[mru.md5sum] = "823abc72c2cd448e87df9bc5355a4456"
+SRC_URI[mru.sha256sum] = "01d9fc04f83740c513c25401dcc89c11b2a5a6013e70bfca42b7b02129f88cd2"
+SRC_URI[ssvb.md5sum] = "ba0ef2939a3b3b487523448c67544e94"
+SRC_URI[ssvb.sha256sum] = "ce42ebdc71c876a33d9f7534355ef76cefa0d00ddb19ad69cf05a266c861d08d"
+SRC_URI[ssvb53.md5sum] = "a32d75f7e1fa9afbb887bef71d89875a"
+SRC_URI[ssvb53.sha256sum] = "502b3a17186da34976cb97d7ae2083a66c42cddaffc1e900a4dd23efc64d97f1"
+
+
+S = "${WORKDIR}"
+
+do_compile() {
+ ${CC} ${CFLAGS} ${LDFLAGS} burn.S -o burn
+ ${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a8.S -o burn-neona8
+}
+
+do_compile_aarch64() {
+ ${CC} ${CFLAGS} ${LDFLAGS} --static cpuburn-a53.S -o burn-a53
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/burn ${D}${bindir}/burn-neon
+ install -m 0755 ${S}/burn-neona8 ${D}${bindir}/
+}
+
+do_install_aarch64() {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/burn-a53 ${D}${bindir}/
+}