Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "A collection of cpuburn programs tuned for different ARM hardware" |
| 2 | LICENSE = "MIT" |
| 3 | LIC_FILES_CHKSUM = "file://cpuburn-a53.S;beginline=1;endline=22;md5=3b7ccd70144c16d3fe14ac491c2d4a87" |
| 4 | |
| 5 | RPROVIDES_${PN} = "cpuburn-neon" |
| 6 | PROVIDES += "cpuburn-neon" |
| 7 | |
| 8 | SRCREV = "ad7e646700d14b81413297bda02fb7fe96613c3f" |
| 9 | |
| 10 | PV = "1.0+git${SRCPV}" |
| 11 | |
| 12 | SRC_URI = "git://github.com/ssvb/cpuburn-arm.git \ |
| 13 | file://0001-cpuburn-a8.S-Remove-.func-.endfunc.patch \ |
| 14 | file://0002-burn.S-Add.patch \ |
| 15 | file://0003-burn.S-Remove-.func-.endfunc.patch \ |
| 16 | " |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | do_compile() { |
| 21 | ${CC} ${CFLAGS} ${LDFLAGS} burn.S -o burn |
| 22 | ${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a7.S -o burn-a7 |
| 23 | ${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a8.S -o burn-a8 |
| 24 | ${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a9.S -o burn-a9 |
| 25 | ${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a53.S -o burn-a53 |
| 26 | ${CC} ${CFLAGS} ${LDFLAGS} cpuburn-krait.S -o burn-krait |
| 27 | } |
| 28 | |
| 29 | do_install() { |
| 30 | install -d ${D}${bindir} |
| 31 | for f in burn burn-a7 burn-a8 burn-a9 burn-a53 burn-krait; do |
| 32 | install -m 0755 $f ${D}${bindir}/$f |
| 33 | done |
| 34 | } |
| 35 | |
| 36 | COMPATIBLE_MACHINE ?= "(^$)" |
| 37 | COMPATIBLE_MACHINE_armv7a = "(.*)" |
| 38 | COMPATIBLE_MACHINE_armv7ve = "(.*)" |