blob: c5c5e8325b58d9d0ab478634b78b992a85630d3a [file] [log] [blame]
William A. Kennington III49e95662021-09-15 16:19:36 -07001SUMMARY = "Shows and manipulates data structure layout"
2
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6DEPENDS = "elfutils zlib libbpf"
7
Patrick Williams93c203f2021-10-06 16:15:23 -05008# Depends on MACHINE_ARCH libbpf
9PACKAGE_ARCH = "${MACHINE_ARCH}"
William A. Kennington III49e95662021-09-15 16:19:36 -070010COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux"
11
12SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f"
Andrew Geissler595f6302022-01-24 19:11:47 +000013SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git;branch=master \
Andrew Geissler5199d832021-09-24 16:47:35 -050014 file://0001-CMakeList.txt-make-python-optional.patch \
Patrick Williams93c203f2021-10-06 16:15:23 -050015 file://0002-Use-usr-bin-env-python3-instead-of-just-usr-bin-pyth.patch \
16 file://0003-CMakeList.txt-don-t-download-libbpf-source-when-syst.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
24EXTRA_OECMAKE = "-D__LIB=lib -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF"
25
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"