mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 12:12:16 +02:00
Dhrystone is a synthetic computing benchmark program developed in 1984 by Reinhold P. Weicker intended to be representative of system (integer) programming. https://en.wikipedia.org/wiki/Dhrystone Signed-off-by: Jose Alarcon <jose.alarcon@ge.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
27 lines
768 B
BlitzBasic
27 lines
768 B
BlitzBasic
SUMMARY = "Dhrystone CPU benchmark"
|
|
LICENSE = "PD"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
|
|
|
|
SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \
|
|
file://dhrystone.patch"
|
|
SRC_URI[md5sum] = "75aa5909c174eed98c134be2f56307da"
|
|
SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e"
|
|
|
|
# Need to override Makefile variables
|
|
EXTRA_OEMAKE = "-e MAKEFLAGS="
|
|
|
|
do_unpack() {
|
|
[ -d ${S} ] || mkdir -p ${S}
|
|
cd ${S}
|
|
sh ${DL_DIR}/dhry-c.shar
|
|
}
|
|
do_install() {
|
|
install -d ${D}${bindir}
|
|
install -m 0755 ${S}/dhry ${D}${bindir}
|
|
}
|
|
|
|
# Prevent procedure merging as required by dhrystone.c:
|
|
CFLAGS += "-fno-lto"
|
|
|
|
LDFLAGS += "-fno-lto"
|