xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3e.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Berkeley TestFloat 3e"
2*4882a593SmuzhiyunDESCRIPTION = "Berkeley TestFloat is a small collection of programs for \
3*4882a593Smuzhiyun    testing that an implementation of binary floating-point conforms to the \
4*4882a593Smuzhiyun    IEEE Standard for Floating-Point Arithmetic."
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunHOMEPAGE = "http://www.jhauser.us/arithmetic/TestFloat.html"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://TestFloat-${PV}/COPYING.txt;md5=d467c2d231054347e8fd885ac06e7b2b"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI = "\
12*4882a593Smuzhiyun    http://www.jhauser.us/arithmetic/TestFloat-3e.zip;name=TestFloat \
13*4882a593Smuzhiyun    http://www.jhauser.us/arithmetic/SoftFloat-3e.zip;name=SoftFloat \
14*4882a593Smuzhiyun    file://0001-Makefile-for-cross-compile-SoftFloat.patch \
15*4882a593Smuzhiyun    file://0002-Makefile-for-cross-compile-TestFloat.patch \
16*4882a593Smuzhiyun"
17*4882a593SmuzhiyunSRC_URI[TestFloat.md5sum] = "e70a1e6c6732abf79645a6dcca69a654"
18*4882a593SmuzhiyunSRC_URI[TestFloat.sha256sum] = "6d4bdf0096b48a653aa59fc203a9e5fe18b5a58d7a1b715107c7146776a0aad6"
19*4882a593SmuzhiyunSRC_URI[SoftFloat.md5sum] = "7dac954ea4aed0697cbfee800ba4f492"
20*4882a593SmuzhiyunSRC_URI[SoftFloat.sha256sum] = "21130ce885d35c1fe73fc1e1bf2244178167e05c6747cad5f450cc991714c746"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunS = "${WORKDIR}"
23*4882a593Smuzhiyun
24*4882a593Smuzhiyundo_compile(){
25*4882a593Smuzhiyun    oe_runmake -C SoftFloat-${PV}/build/Linux-Cross-Compile/
26*4882a593Smuzhiyun    oe_runmake -C TestFloat-${PV}/build/Linux-Cross-Compile/
27*4882a593Smuzhiyun}
28*4882a593Smuzhiyun
29*4882a593Smuzhiyundo_install(){
30*4882a593Smuzhiyun    install -d ${D}/${bindir}
31*4882a593Smuzhiyun    install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testfloat     ${D}/${bindir}
32*4882a593Smuzhiyun    install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testfloat_gen ${D}/${bindir}
33*4882a593Smuzhiyun    install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testfloat_ver ${D}/${bindir}
34*4882a593Smuzhiyun    install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/testsoftfloat ${D}/${bindir}
35*4882a593Smuzhiyun    install ${S}/TestFloat-${PV}/build/Linux-Cross-Compile/timesoftfloat ${D}/${bindir}
36*4882a593Smuzhiyun}
37