diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-kernel/systemtap/systemtap_git.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.inc')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.inc | 29 |
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 @@ | |||
1 | LICENSE = "GPLv2" | ||
2 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
3 | SRCREV = "8f0fcd995f7f650a2ee0a94539f90c99e6d19e1d" | ||
4 | PV = "2.5+git${SRCPV}" | ||
5 | |||
6 | SRC_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 | ||
16 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64).*-linux' | ||
17 | |||
18 | S = "${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. | ||
22 | def 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 | |||
29 | SELECTED_OPTIMIZATION := "${@get_optimization(d)}" | ||