William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 1 | SUMMARY = "Shows and manipulates data structure layout" |
| 2 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-only" |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | |
| 6 | DEPENDS = "elfutils zlib libbpf" |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 7 | DEPENDS:append:class-native = " linux-libc-headers" |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 8 | |
Patrick Williams | 93c203f | 2021-10-06 16:15:23 -0500 | [diff] [blame] | 9 | # Depends on MACHINE_ARCH libbpf |
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 11 | COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux" |
| 12 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 13 | PV .= "+1.25+git${SRCPV}" |
| 14 | SRCREV = "a9498899109d3be14f17abbc322a8f55a1067bee" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 15 | SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git;branch=master \ |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 16 | file://0002-Use-usr-bin-env-python3-instead-of-just-usr-bin-pyth.patch" |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 20 | inherit cmake pkgconfig |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 21 | |
| 22 | PACKAGECONFIG[python3] = ",,python3-core,python3-core" |
| 23 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 24 | EXTRA_OECMAKE = "-D__LIB=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF" |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 25 | |
| 26 | FILES:${PN} = "${bindir}/pahole \ |
| 27 | ${libdir}/libdwarves.so* \ |
| 28 | ${libdir}/libdwarves_reorganize.so*" |
| 29 | |
| 30 | PACKAGES += "${PN}-extra" |
| 31 | FILES:${PN}-extra = "${datadir} ${bindir} ${libdir}/libdwarves_emit.so*" |
| 32 | RDEPENDS:${PN}-extra += "bash python3-core" |
| 33 | |
| 34 | BBCLASSEXTEND = "native nativesdk" |