From 29404066e589a6006741708c6a486584abd3ea8c Mon Sep 17 00:00:00 2001 From: Xiangyu Chen Date: Mon, 22 May 2023 20:07:08 +0800 Subject: libbpf: installing uapi headers for native package using libbpf-native provided headers for pahole-native or other application. Signed-off-by: Xiangyu Chen Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb b/meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb index 7c3df5f8ad..71ca10e5a0 100644 --- a/meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb +++ b/meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb @@ -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" -- cgit v1.2.3-54-g00ecf