blob: f44b0cef0c26a4ab00c87481dddb9f2a3ca0709e [file] [log] [blame]
William A. Kennington III49e95662021-09-15 16:19:36 -07001SUMMARY = "Shows and manipulates data structure layout"
2
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-2.0-only"
William A. Kennington III49e95662021-09-15 16:19:36 -07004LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6DEPENDS = "elfutils zlib libbpf"
Andrew Geissler3eeda902023-05-19 10:14:02 -05007DEPENDS:append:class-native = " linux-libc-headers"
William A. Kennington III49e95662021-09-15 16:19:36 -07008
Patrick Williams93c203f2021-10-06 16:15:23 -05009# Depends on MACHINE_ARCH libbpf
10PACKAGE_ARCH = "${MACHINE_ARCH}"
William A. Kennington III49e95662021-09-15 16:19:36 -070011COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux"
12
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050013PV .= "+1.25+git${SRCPV}"
14SRCREV = "a9498899109d3be14f17abbc322a8f55a1067bee"
Andrew Geissler595f6302022-01-24 19:11:47 +000015SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git;branch=master \
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050016 file://0002-Use-usr-bin-env-python3-instead-of-just-usr-bin-pyth.patch"
William A. Kennington III49e95662021-09-15 16:19:36 -070017
18S = "${WORKDIR}/git"
19
Andrew Geissler5199d832021-09-24 16:47:35 -050020inherit cmake pkgconfig
William A. Kennington III49e95662021-09-15 16:19:36 -070021
22PACKAGECONFIG[python3] = ",,python3-core,python3-core"
23
Patrick Williams8e7b46e2023-05-01 14:19:06 -050024EXTRA_OECMAKE = "-D__LIB=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF"
William A. Kennington III49e95662021-09-15 16:19:36 -070025
26FILES:${PN} = "${bindir}/pahole \
27 ${libdir}/libdwarves.so* \
28 ${libdir}/libdwarves_reorganize.so*"
29
30PACKAGES += "${PN}-extra"
31FILES:${PN}-extra = "${datadir} ${bindir} ${libdir}/libdwarves_emit.so*"
32RDEPENDS:${PN}-extra += "bash python3-core"
33
34BBCLASSEXTEND = "native nativesdk"