summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap/systemtap_git.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.inc')
-rw-r--r--meta/recipes-kernel/systemtap/systemtap_git.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc
new file mode 100644
index 0000000000..9db0dcc2d7
--- /dev/null
+++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
@@ -0,0 +1,29 @@
1LICENSE = "GPLv2"
2LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
3SRCREV = "8f0fcd995f7f650a2ee0a94539f90c99e6d19e1d"
4PV = "2.5+git${SRCPV}"
5
6SRC_URI = "git://sourceware.org/git/systemtap.git \
7 file://docproc-build-fix.patch \
8 file://obsolete_automake_macros.patch \
9 file://scheduler-stp.patch \
10 file://system_map_location.patch \
11 file://tapset-linux-sendfile-syscall.patch \
12 file://configure-allow-to-disable-libvirt.patch \
13 "
14
15# systemtap doesn't support mips
16COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64).*-linux'
17
18S = "${WORKDIR}/git"
19
20# systemtap can't be built without optimization, if someone tries to compile an
21# entire image as -O0, we override it with -O2 here and give a note about it.
22def get_optimization(d):
23 selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True)
24 if bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x":
25 bb.note("systemtap can't be built with -O0, -O2 will be used instead.")
26 return selected_optimization.replace("-O0", "-O2")
27 return selected_optimization
28
29SELECTED_OPTIMIZATION := "${@get_optimization(d)}"