blob: 59a578daac83152ccf6e009b84468d9e06f08679 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001LICENSE = "GPLv2"
2LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
3SRCREV = "bf16266782e1f2588b519a50d9684279d4e21036"
4PV = "2.7+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://system_map_location.patch \
10 file://configure-allow-to-disable-libvirt.patch \
11 file://x32_abi_time.patch \
12 "
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 bb.utils.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)}"