Skip to content

Commit

Permalink
libbpf: installing uapi headers for native package
Browse files Browse the repository at this point in the history
Source: meta-openembedded
MR: 126092
Type: Integration
Disposition: Merged from meta-openembedded
ChangeID: 5f120a9
Description:

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

Signed-off-by: Xiangyu Chen <[email protected]>
Signed-off-by: Armin Kuster <[email protected]>
Signed-off-by: Jeremy A. Puhlman <[email protected]>
  • Loading branch information
chenxy1988 authored and jpuhlman committed May 30, 2023
1 parent 6ca951a commit 036488c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta-oe/recipes-kernel/libbpf/libbpf_0.7.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -28,4 +29,8 @@ do_install() {
oe_runmake install
}

do_install:append:class-native() {
oe_runmake install_uapi_headers
}

BBCLASSEXTEND = "native nativesdk"

0 comments on commit 036488c

Please sign in to comment.