> On Aug 23, 2016, at 2:47 AM, Mubin Sayyed <[email protected]> > wrote: > > This patch adds recipe for whestone benchmarks. > Whestone benchmarks measures CPU's floating-point > arithmetic performance > > Signed-off-by: Mubin Sayyed <[email protected]> > --- > .../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
hardcoding, compiler options may not be the right thing
just leveraging CFLAGS is right thing.
Secondly, also pass LDFLAGS since compile and link are
happening in same step
> +}
> +
> +do_install () {
> + install -d ${D}${bindir}
> + install -m 0755 whetstone ${D}${bindir}
> +}
> +
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
signature.asc
Description: Message signed with OpenPGP using GPGMail
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
