diff options
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofile.inc')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofile.inc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc new file mode 100644 index 0000000000..080219ed3d --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile.inc | |||
@@ -0,0 +1,36 @@ | |||
1 | SUMMARY = "System-Wide Profiler" | ||
2 | DESCRIPTION = "OProfile is a system-wide profiler for Linux systems, capable \ | ||
3 | of profiling all running code at low overhead." | ||
4 | HOMEPAGE = "http://oprofile.sourceforge.net/news/" | ||
5 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=16191&atid=116191" | ||
6 | |||
7 | LICENSE = "LGPLv2.1+ & GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
9 | file://libopagent/opagent.h;beginline=5;endline=26;md5=4f16f72c7a493d8a4704aa18d03d15c6 \ | ||
10 | file://daemon/liblegacy/p_module.h;beginline=2;endline=20;md5=fc23a43455edf185307274a99730b6e4" | ||
11 | |||
12 | SECTION = "devel" | ||
13 | |||
14 | DEPENDS = "popt binutils" | ||
15 | RDEPENDS_${PN} = "binutils-symlinks" | ||
16 | RRECOMMENDS_${PN} = "kernel-vmlinux" | ||
17 | |||
18 | FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" | ||
19 | FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" | ||
20 | FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" | ||
21 | |||
22 | INC_PR = "r2" | ||
23 | |||
24 | SRC_URI = "file://opstart.patch \ | ||
25 | file://oprofile-no-query-modules.patch \ | ||
26 | file://oprofile-root.patch \ | ||
27 | file://acinclude.m4" | ||
28 | |||
29 | inherit autotools-brokensep | ||
30 | |||
31 | EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR} --without-x" | ||
32 | do_configure () { | ||
33 | find ${S} -wholename '${S}/.pc' -prune -o -type f -print | xargs sed -i 's#ROOTHOME#${ROOT_HOME}#' | ||
34 | cp ${WORKDIR}/acinclude.m4 ${S}/ | ||
35 | autotools_do_configure | ||
36 | } | ||