summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreeti Sachan <preeti.sachan@intel.com>2025-01-07 12:07:04 +0800
committerKhem Raj <raj.khem@gmail.com>2025-01-07 09:33:13 -0800
commitd634c5c1a602bf2e4555bccc9143f4c3cbb1f41a (patch)
treeb93b7db32ac223bb0a475ee5d3c9a31fdb33f9e2
parent9fd5801396fc2b65d642b06530c7991a0355127b (diff)
downloadmeta-openembedded-d634c5c1a602bf2e4555bccc9143f4c3cbb1f41a.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: Khem Raj <raj.khem@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} \