1 SECTION = "console/utils"
2 DESCRIPTION = "A tool for retrieving kernel spinlock metering information."
3 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
4 DEPENDS = "virtual/kernel"
6 SRC_URI = "ftp://oss.sgi.com/projects/lockmeter/download/lockstat-${PV}.tar.gz"
7 S = "${WORKDIR}/lockstat"
9 export KERNEL_VERSION = ${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}
10 export KERNEL_SOURCE = ${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}
11 CFLAGS += " -I${KERNEL_SOURCE}/include"
14 # NOTE: any target machines with kernels supporting spinlock metering should
15 # check the MACHINE variable here to prevent the SkipPackage.
16 raise bb.parse.SkipPackage("The target machine's kernel does not appear able to use spinlock metering.")
24 install -d ${D}${sbindir}
25 install -m 0755 lockstat ${D}${sbindir}/