increase dvbapp PR.
[vuplus_openembedded] / recipes / oprofile / oprofile.inc
1 SECTION = "devel"
2 DESCRIPTION = "OProfile is a system-wide profiler for Linux systems, capable \
3 of profiling all running code at low overhead."
4 LICENSE = "GPL"
5 DEPENDS = "popt binutils"
6 RDEPENDS += "binutils-symlinks"
7 RRECOMMENDS += "kernel-vmlinux"
8 INC_PR = "r11"
9
10 S = "${WORKDIR}/oprofile-${PV}"
11 SRC_URI = "\
12         ${SOURCEFORGE_MIRROR}/oprofile/oprofile-${PV}.tar.gz;name=tarball \
13         file://acinclude.m4 \
14         "
15
16 inherit autotools
17
18 # NOTE: this disables the build of the kernel modules.
19 # Should add the oprofile kernel modules, for those with 2.4
20 # kernels, as a seperate .oe file.
21 EXTRA_OECONF = "--with-kernel-support \
22                 --without-x \
23                 --disable-werror "
24
25 do_configure () {
26         cp ${WORKDIR}/acinclude.m4 ${S}/
27         autotools_do_configure
28 }
29 # Available config options
30 #  --enable-abi                 enable abi portability code (default is disabled)
31 #  --enable-pch                 enable precompiled header (default is disabled)
32 #  --enable-gcov                enable option for gcov coverage testing (default is disabled)
33 #  --disable-werror            disable -Werror flag (default is enabled for non-release)
34 #  --disable-optimization      disable optimization flags (default is enabled)
35 #  --with-kernel-support        Use 2.6 kernel (no kernel source tree required)
36 #  --with-linux=dir             Path to Linux source tree
37 #  --with-module-dir=dir        Path to module installation directory
38 #  --with-extra-includes=DIR    add extra include paths
39 #  --with-extra-libs=DIR        add extra library paths
40 #  --with-x                use the X Window System
41 #  --with-qt-dir           where the root of Qt is installed
42 #  --with-qt-includes      where the Qt includes are.
43 #  --with-qt-libraries     where the Qt library is installed.
44
45 do_stage () {
46         # As of 0.9.4 there is a libopagent library to compile and link against.
47         autotools_stage_all
48 }
49
50 OPROFILE_ARCH = "${TARGET_ARCH}"
51 OPROFILE_ARCH_i586 = "i386"
52 # note this excludes the ppc64 directory 
53 # but we do not support ppc64 targets yet.
54 OPROFILE_ARCH_powerpc = "ppc"
55
56 FILES_${PN} = "${bindir} ${datadir}/oprofile/rtc ${datadir}/oprofile/stl.pat ${datadir}/oprofile/${OPROFILE_ARCH}"
57 FILES_${PN} += "\
58         ${libdir}/oprofile/libopagent.so.* \
59 "
60
61 FILES_${PN}-dev += "\
62         ${libdir}/oprofile/lib*.so \
63         ${libdir}/oprofile/lib*.a \
64         ${libdir}/oprofile/lib*.la \
65 "