summaryrefslogtreecommitdiffstats
path: root/meta/packages
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-10-12 10:10:19 +0000
committerRichard Purdie <richard@openedhand.com>2006-10-12 10:10:19 +0000
commit50f3bbc318d6f1e415be6bf334effbef4757fd7d (patch)
treee74e3d5ce95de956676cbb4fe0bd9a5d453399dd /meta/packages
parent272266f06ffbf67a73893ac5c46ee5e14688b16f (diff)
downloadpoky-50f3bbc318d6f1e415be6bf334effbef4757fd7d.tar.gz
oprofile: Add 0.9.2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@793 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/oprofile/oprofile-0.9.2/opcontrol_bashisms.patch16
-rw-r--r--meta/packages/oprofile/oprofile_0.9.2.bb39
2 files changed, 55 insertions, 0 deletions
diff --git a/meta/packages/oprofile/oprofile-0.9.2/opcontrol_bashisms.patch b/meta/packages/oprofile/oprofile-0.9.2/opcontrol_bashisms.patch
new file mode 100644
index 0000000000..01ef11df86
--- /dev/null
+++ b/meta/packages/oprofile/oprofile-0.9.2/opcontrol_bashisms.patch
@@ -0,0 +1,16 @@
1 utils/opcontrol | 2 +-
2 1 file changed, 1 insertion(+), 1 deletion(-)
3
4Index: oprofile-0.9.2/utils/opcontrol
5===================================================================
6--- oprofile-0.9.2.orig/utils/opcontrol 2006-03-29 22:54:07.000000000 +0100
7+++ oprofile-0.9.2/utils/opcontrol 2006-10-12 11:14:39.000000000 +0100
8@@ -485,7 +485,7 @@ validate_separate_args()
9 SEPARATE_KERNEL=0
10 SEPARATE_THREAD=0
11 SEPARATE_CPU=0
12- while (($i < $#)); do
13+ while [ "$i" -lt "$#" ]; do
14 shift
15 case "$1" in
16 lib|library)
diff --git a/meta/packages/oprofile/oprofile_0.9.2.bb b/meta/packages/oprofile/oprofile_0.9.2.bb
new file mode 100644
index 0000000000..e64aa10d49
--- /dev/null
+++ b/meta/packages/oprofile/oprofile_0.9.2.bb
@@ -0,0 +1,39 @@
1SECTION = "devel"
2DESCRIPTION = "OProfile is a system-wide profiler for Linux systems, capable \
3of profiling all running code at low overhead."
4LICENSE = "GPL"
5DEPENDS = "popt binutils"
6
7SRC_URI = "${SOURCEFORGE_MIRROR}/oprofile/oprofile-${PV}.tar.gz \
8 file://no_arm_mapping_syms.patch;patch=1 \
9 file://opcontrol_bashisms.patch;patch=1 \
10 file://acinclude.m4"
11S = "${WORKDIR}/oprofile-${PV}"
12
13inherit autotools
14
15# NOTE: this disables the build of the kernel modules.
16# Should add the oprofile kernel modules, for those with 2.4
17# kernels, as a seperate .oe file.
18EXTRA_OECONF = "--with-kernel-support \
19 --without-x"
20
21do_configure () {
22 cp ${WORKDIR}/acinclude.m4 ${S}/
23 autotools_do_configure
24}
25# Available config options
26# --enable-abi enable abi portability code (default is disabled)
27# --enable-pch enable precompiled header (default is disabled)
28# --enable-gcov enable option for gcov coverage testing (default is disabled)
29# --disable-werror disable -Werror flag (default is enabled for non-release)
30# --disable-optimization disable optimization flags (default is enabled)
31# --with-kernel-support Use 2.6 kernel (no kernel source tree required)
32# --with-linux=dir Path to Linux source tree
33# --with-module-dir=dir Path to module installation directory
34# --with-extra-includes=DIR add extra include paths
35# --with-extra-libs=DIR add extra library paths
36# --with-x use the X Window System
37# --with-qt-dir where the root of Qt is installed
38# --with-qt-includes where the Qt includes are.
39# --with-qt-libraries where the Qt library is installed.