diff options
author | Preeti Sachan <preeti.sachan@intel.com> | 2025-01-07 10:21:41 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-01-20 19:30:16 -0500 |
commit | 20239ef5ce5bb1097fd2f13ff917d6e6613f8860 (patch) | |
tree | 44876561c102a697fa022279248fe4755ea22e4e | |
parent | 21f1b32be55f4672cfa4d2cc29d2b61906da0ea4 (diff) | |
download | meta-openembedded-20239ef5ce5bb1097fd2f13ff917d6e6613f8860.tar.gz |
bpftool: fix libelf.h not found error
When build host machine is not installed with elfutils-libelf-devel, it
throws compile error "libelf.h: No such file or directory". Fix missing
headers file by including path ${STAGING_INCDIR_NATIVE} via CFLAGS variable.
Use headers file from ${STAGING_INCDIR_NATIVE} instead of host machine.
Error:
| libbpf_internal.h:19:10: fatal error: libelf.h: No such file or directory
Signed-off-by: Preeti Sachan <preeti.sachan@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-kernel/bpftool/bpftool.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-kernel/bpftool/bpftool.bb b/meta-oe/recipes-kernel/bpftool/bpftool.bb index 8bddde9451..ec778c6e76 100644 --- a/meta-oe/recipes-kernel/bpftool/bpftool.bb +++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb | |||
@@ -14,7 +14,7 @@ EXTRA_OEMAKE = "\ | |||
14 | -C ${S}/tools/bpf/bpftool \ | 14 | -C ${S}/tools/bpf/bpftool \ |
15 | O=${B} \ | 15 | O=${B} \ |
16 | CROSS=${TARGET_PREFIX} \ | 16 | CROSS=${TARGET_PREFIX} \ |
17 | CC="${CC} ${DEBUG_PREFIX_MAP} -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}" \ | 17 | CC="${CC} ${DEBUG_PREFIX_MAP} -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH} ${CFLAGS}" \ |
18 | HOSTCC="${BUILD_CC} ${BUILD_CFLAGS}" \ | 18 | HOSTCC="${BUILD_CC} ${BUILD_CFLAGS}" \ |
19 | LD="${LD}" \ | 19 | LD="${LD}" \ |
20 | AR=${AR} \ | 20 | AR=${AR} \ |