Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | DESCRIPTION = "LINPACK Benchmarks are a measure of a system's floating point computing power" |
| 2 | SUMMARY = "LINPACK is a software library for performing numerical linear algebra on digital computers" |
| 3 | |
| 4 | LICENSE = "PD" |
| 5 | LIC_FILES_CHKSUM ="file://${WORKDIR}/linpacknew.c;beginline=1;endline=23;md5=aa025e3bc44190c71e4c5e3b084fed87" |
| 6 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 7 | SRC_URI = "http://www.netlib.org/benchmark/linpackc.new;downloadfilename=linpacknew.c \ |
| 8 | file://0001-linpack-Define-DP-only-when-SP-is-not-defined.patch \ |
| 9 | " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | SRC_URI[md5sum] = "1c5d0b6a31264685d2e651c920e3cdf4" |
| 11 | SRC_URI[sha256sum] = "a63f2ec86512959f1fd926bfafb85905b2d7b7402942ffae3af374d48745e97e" |
| 12 | |
| 13 | S = "${WORKDIR}" |
| 14 | |
| 15 | do_compile () { |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 16 | ${CC} ${CFLAGS} ${LDFLAGS} -DDP -o linpack_dp linpacknew.c -lm |
| 17 | ${CC} ${CFLAGS} ${LDFLAGS} -DSP -o linpack_sp linpacknew.c -lm |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | do_install () { |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 21 | install -Dm 0755 linpack_dp ${D}${bindir}/linpack_dp |
| 22 | install -Dm 0755 linpack_sp ${D}${bindir}/linpack_sp |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 23 | } |
| 24 | |