blob: b7218f02e05dacdf0ff024fd545064f7682eeee1 [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001LICENSE = "GPL-2.0-only"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Andrew Geissler595f6302022-01-24 19:11:47 +00003SRCREV = "2e9f2f6967e44ce2bf8f34932b5bdd738ece2161"
4PV = "4.6"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
Andrew Geissler595f6302022-01-24 19:11:47 +00006SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master \
Brad Bishop37a0e4d2017-12-04 01:01:44 -05007 file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
8 file://0001-Install-python-modules-to-correct-library-dir.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -05009 file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
Andrew Geissler595f6302022-01-24 19:11:47 +000010 file://0001-PR28778-gcc-warning-tweak-for-sprintf-precision-para.patch \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000011 file://0001-PR28804-tune-default-stap-s-buffer-size-on-small-RAM.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
Brad Bishop316dfdd2018-06-25 12:45:53 -040014COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips).*-linux'
Patrick Williams213cb262021-08-07 19:21:33 -050015COMPATIBLE_HOST:libc-musl = 'null'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17S = "${WORKDIR}/git"
18
19# systemtap can't be built without optimization, if someone tries to compile an
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020# entire image as -O0, break with fatal.
21python () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022 if bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x":
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023 bb.fatal("systemtap can't be built with -O0, using -O1 -Wno-error or -O1 instead.")
24}