Skip to contentSkip to conversation

Revert "pahole: fix native package build error"

PATCH New Xiangyu Chen 1 participant 2 messages May 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Revert "pahole: fix native package build error"

From: Xiangyu Chen <[email protected]>

This reverts commit b9df3387002195ad365735bd15a3b70b1355d70f.

The pahole-native package should use the header from libbpf instead of linux-libc-headers, the b9df33870 would cause compile error, so revert it.

---
 meta-oe/recipes-devtools/pahole/pahole_1.24.bb | 1 -
 1 file changed, 1 deletion(-)
meta-oe/recipes-devtools/pahole/pahole_1.24.bb +0 -1
index f44b0cef0..2bb73c3eb 100644
@@ -4,7 +4,6 @@ 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
#1 lore raw

PATCH 2/2 libbpf: installing uapi headers for native package

From: Xiangyu Chen <[email protected]>

using libbpf-native provided headers for pahole-native or other application.

---
 meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb +5 -0
index 7c3df5f8a..71ca10e5a 100644
@@ -17,6 +17,7 @@ COMPATIBLE_HOST = "(x86_64|i.86|aarch64|riscv64|powerpc64).*-linux"
 S = "${WORKDIR}/git/src"
 
 EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
+EXTRA_OEMAKE:append:class-native = " UAPIDIR=${includedir}"
 
 inherit pkgconfig
 
@@ -28,4 +29,8 @@ do_install() {
 	oe_runmake install
 }
 
+do_install:append:class-native() {
+	oe_runmake install_uapi_headers
+}
+
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1