summaryrefslogtreecommitdiff
path: root/recipes-benchmark/stress-ng/stress-ng_0.08.15.bb
blob: 7397b2a1f6d4a5c6461b56c9550dbf0011a88ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DESCRIPTION = "stress-ng will stress test a computer system in various selectable ways. \
    It was designed to exercise various physical subsystems of a computer as well as the \
    various operating system kernel interfaces."
HOMEPAGE = "http://kernel.ubuntu.com/~cking/stress-ng/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

SRC_URI = "git://kernel.ubuntu.com/cking/stress-ng.git;protocol=git"
SRCREV = "e59ea5d3c246361880f096d25ac6361dd4590f81"

S = "${WORKDIR}/git"

EXTRA_OEMAKE = "\
    'CC=${CC}' \
    'CFLAGS=${CFLAGS}' \
    'LFLAGS=${LDFLAGS} -lrt' \
"

do_compile() {
    oe_runmake CFLAGS="-DVERSION=\\\"${PV}\\\""
}

do_install() {
    oe_runmake install DESTDIR=${D} BINDIR=${bindir} MANDIR=${mandir}
    chown -R root:root ${D} ${bindir} ${mandir}
}