pahole: fix native package build error
PATCH v2 1/1 pahole: fix native package build error
From: Xiangyu Chen <[email protected]>
pahole-native package needs some uapi headers such like linux/btf.h, otherwise it would report error as below:
btf_loader.c:342:54: error: invalid use of undefined type ‘struct btf_enum64’
Signed-off-by Xiangyu Chen <[email protected]>
---
changes:v1->v2
Since this issue happens on native package only, so using DEPENDS:append:class-native instead of DEPENDS
--- meta-oe/recipes-devtools/pahole/pahole_1.24.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/pahole/pahole_1.24.bb +1 -0
@@ -4,6 +4,7 @@ LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" DEPENDS = "elfutils zlib libbpf" +DEPENDS:append:class-native = " linux-libc-headers" # Depends on MACHINE_ARCH libbpf PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
2.34.1