William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 1 | SUMMARY = "Shows and manipulates data structure layout" |
| 2 | |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | |
| 6 | DEPENDS = "elfutils zlib libbpf" |
| 7 | |
| 8 | COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux" |
| 9 | |
| 10 | SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f" |
| 11 | SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git \ |
| 12 | file://0001-CMakeList.txt-make-python-optional.patch" |
| 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | inherit cmake |
| 17 | |
| 18 | PACKAGECONFIG[python3] = ",,python3-core,python3-core" |
| 19 | |
| 20 | EXTRA_OECMAKE = "-D__LIB=lib -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF" |
| 21 | |
| 22 | FILES:${PN} = "${bindir}/pahole \ |
| 23 | ${libdir}/libdwarves.so* \ |
| 24 | ${libdir}/libdwarves_reorganize.so*" |
| 25 | |
| 26 | PACKAGES += "${PN}-extra" |
| 27 | FILES:${PN}-extra = "${datadir} ${bindir} ${libdir}/libdwarves_emit.so*" |
| 28 | RDEPENDS:${PN}-extra += "bash python3-core" |
| 29 | |
| 30 | BBCLASSEXTEND = "native nativesdk" |