task-fso2-compliance: add fsoaudiod as dependency
[openembedded.git] / recipes / cpusage / cpusage_0.1.bb
blob9a3811f664790c995f218600bf6012da99666c6c
1 DESCRIPTION = "This tool read out the tics counter of the operating system and \
2 calculates the Percentages spend in each CPU_STATE."
3 HOMEPAGE = "http://www.net.t-labs.tu-berlin.de/~fabian/proj_de.html"
4 SECTION = "base"
5 PRIORITY = "optional"
6 LICENSE = "GPL"
7 PR = "r0"
9 SRC_URI = "http://www.net.t-labs.tu-berlin.de/~fabian/sources/cpusage-${PV}.tar.gz \
10 file://cpusage.patch"
12 S = "${WORKDIR}/cpusage-${PV}"
14 FILES_${PN} = "/sbin/cpusage"
16 CFLAGS_append =" -D_BSD_SOURCE=1"
17 CFLAGS_append = '${@base_conditional("KERNEL_MAJOR_VERSION", "2.6", " -D__Linux26__ ", " -D__Linux24__ ",d)}'
19 do_compile() {
20 ${CC} ${CFLAGS} ${LDFLAGS} -o cpusage cpusage.c
23 do_install() {
24 install -d ${D}${base_sbindir}
25 install -m 0755 cpusage ${D}${base_sbindir}/cpusage
28 SRC_URI[md5sum] = "f779140995280de32817ec4a133f4d60"
29 SRC_URI[sha256sum] = "feb0b8c73c771390a8771fc3a4ed01104c008bcd278a267eb00263794956778c"