summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreeti Sachan <preeti.sachan@intel.com>2025-01-07 10:21:41 +0800
committerArmin Kuster <akuster808@gmail.com>2025-01-20 19:30:16 -0500
commit20239ef5ce5bb1097fd2f13ff917d6e6613f8860 (patch)
tree44876561c102a697fa022279248fe4755ea22e4e
parent21f1b32be55f4672cfa4d2cc29d2b61906da0ea4 (diff)
downloadmeta-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.bb2
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} \