1*4882a593SmuzhiyunDESCRIPTION = "A simple memory benchmark program, which tries to measure the \
2*4882a593Smuzhiyunpeak bandwidth of sequential memory accesses and the latency of random memory \
3*4882a593Smuzhiyunaccesses. Bandwidth is measured by running different assembly code for the \
4*4882a593Smuzhiyunaligned memory blocks and attempting different prefetch strategies"
5*4882a593SmuzhiyunHOMEPAGE = "https://github.com/ssvb/tinymembench/wiki"
6*4882a593SmuzhiyunLICENSE = "MIT"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://main.c;endline=22;md5=879b9bbb60851454885b5fa47eb6b345"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunPV = "0.4.9+git${SRCPV}"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRCREV = "a2cf6d7e382e3aea1eb39173174d9fa28cad15f3"
12*4882a593SmuzhiyunSRC_URI = "git://github.com/ssvb/tinymembench.git;branch=master;protocol=https \
13*4882a593Smuzhiyun           file://0001-asm-Delete-.func-.endfunc-directives.patch \
14*4882a593Smuzhiyun           "
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunS = "${WORKDIR}/git"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunTARGET_CC_ARCH += "${LDFLAGS}"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyundo_install() {
21*4882a593Smuzhiyun    install -d ${D}${bindir}
22*4882a593Smuzhiyun    install -m755 tinymembench ${D}${bindir}/
23*4882a593Smuzhiyun}
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun# Fails to build with thumb-1 (qemuarm)
26*4882a593Smuzhiyun#| {standard input}: Assembler messages:
27*4882a593Smuzhiyun#| {standard input}:66: Error: instruction not supported in Thumb16 mode -- `subs r1,r1,#16'
28*4882a593Smuzhiyun#| {standard input}:69: Error: instruction not supported in Thumb16 mode -- `subs r1,r1,#16'
29*4882a593Smuzhiyun#| {standard input}:82: Error: selected processor does not support Thumb mode `mla r3,r4,r3,r5'
30*4882a593Smuzhiyun#| {standard input}:82: Error: unshifted register required -- `and r8,r7,r3,lsr#16'
31*4882a593SmuzhiyunARM_INSTRUCTION_SET = "arm"
32*4882a593Smuzhiyun#
33*4882a593Smuzhiyun# Does not work for 64bit mips.
34*4882a593Smuzhiyun#
35*4882a593SmuzhiyunCOMPATIBLE_HOST = "^(?!mips64).*"
36