blob: ace376ef273ff7f8a03217bc34aa55073ccdaefc [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Berkeley TestFloat is a small collection of programs for \
2 testing that an implementation of binary floating-point conforms to the \
3 IEEE Standard for Floating-Point Arithmetic."
4
5HOMEPAGE = "http://www.jhauser.us/arithmetic/TestFloat.html"
6
Brad Bishop2d39a062019-10-28 08:33:36 -04007LICENSE = "BSD-3-Clause"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008LIC_FILES_CHKSUM = "file://TestFloat-${PV}/COPYING.txt;md5=e45c175a323b5727777fb6bd4b26eafc"
9
10SRC_URI = "\
11 http://www.jhauser.us/arithmetic/TestFloat-3a.zip;name=TestFloat \
12 http://www.jhauser.us/arithmetic/SoftFloat-3a.zip;name=SoftFloat \
13 file://0001-Makefile-for-cross-compile-SoftFloat.patch \
14 file://0002-Makefile-for-cross-compile-TestFloat.patch \
15"
16SRC_URI[TestFloat.md5sum] = "5a124e85ab74c5e52da27d401cea6cc3"
17SRC_URI[TestFloat.sha256sum] = "fa258b5b3c751656a372051adee4183e19ad4763032322eb7a87dfb9e2c22c75"
18SRC_URI[SoftFloat.md5sum] = "e53bd4550cf99690642c41374d188517"
19SRC_URI[SoftFloat.sha256sum] = "946fd23180559d60eb6683dda1cf8b142f5426dedfefb97b03c6afdfd70ee9e0"
20
21S = "${WORKDIR}"
22
23do_compile(){
24 oe_runmake -C SoftFloat-${PV}/build/Linux-Cross-Compile/
25 oe_runmake -C TestFloat-${PV}/build/Linux-Cross-Compile/
26}
27
28do_install(){
29 install -d ${D}/${bindir}
30 install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testfloat ${D}/${bindir}
31 install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testfloat_gen ${D}/${bindir}
32 install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testfloat_ver ${D}/${bindir}
33 install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testsoftfloat ${D}/${bindir}
34 install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/timesoftfloat ${D}/${bindir}
35}