Skip to contentSkip to conversation

libbpf: installing uapi headers for native package

PATCH New Xiangyu Chen 1 participant 1 message Jun 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.1.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-kernel/libbpf/libbpf_1.1.0.bb +5 -0
index 1aee51f1e..9517481ee 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