Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | LICENSE = "GPLv2" |
| 2 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 3 | SRCREV = "bf16266782e1f2588b519a50d9684279d4e21036" |
| 4 | PV = "2.7+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://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 |
| 15 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64).*-linux' |
| 16 | |
| 17 | S = "${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. |
| 21 | def 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 | |
| 28 | SELECTED_OPTIMIZATION := "${@get_optimization(d)}" |