mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
9fd5801396
commit
d634c5c1a6
|
|
@ -14,7 +14,7 @@ EXTRA_OEMAKE = "\
|
|||
-C ${S}/tools/bpf/bpftool \
|
||||
O=${B} \
|
||||
CROSS=${TARGET_PREFIX} \
|
||||
CC="${CC} ${DEBUG_PREFIX_MAP} -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}" \
|
||||
CC="${CC} ${DEBUG_PREFIX_MAP} -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH} ${CFLAGS}" \
|
||||
HOSTCC="${BUILD_CC} ${BUILD_CFLAGS}" \
|
||||
LD="${LD}" \
|
||||
AR=${AR} \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user