summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap/systemtap_git.inc
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2014-06-26 14:36:22 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2014-06-26 15:32:53 +0200
commitf4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch)
tree487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-kernel/systemtap/systemtap_git.inc
downloadpoky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.inc')
-rw-r--r--meta/recipes-kernel/systemtap/systemtap_git.inc28
1 files changed, 28 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..e5f4da9830
--- /dev/null
+++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
@@ -0,0 +1,28 @@
1LICENSE = "GPLv2"
2LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
3SRCREV = "ae91e3d552aff4f0e74662d055dae06ea55eb6bc"
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 "
11
12FILESPATH = "${FILE_DIRNAME}/systemtap"
13
14# systemtap doesn't support mips
15COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64).*-linux'
16
17S = "${WORKDIR}/git"
18
19# systemtap can't be built without optimization, if someone tries to compile an
20# entire image as -O0, we override it with -O2 here and give a note about it.
21def get_optimization(d):
22 selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True)
23 if base_contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x":
24 bb.note("systemtap can't be built with -O0, -O2 will be used instead.")
25 return selected_optimization.replace("-O0", "-O2")
26 return selected_optimization
27
28SELECTED_OPTIMIZATION := "${@get_optimization(d)}"