mirror of
git://git.openembedded.org/meta-openembedded
synced 2025-12-31 13:38:06 +00:00
Most host gcc doesn't support -fcanon-prefix-map right now, so empty DEBUG_PREFIX_MAP_EXTRA to fix the below build error. | gcc: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’? Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 31a08525bedd960c21214f84c256f67c6090bb5a) Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
41 lines
1.1 KiB
BlitzBasic
41 lines
1.1 KiB
BlitzBasic
SUMMARY = "Inspect and manipulate eBPF programs and maps"
|
|
DESCRIPTION = "bpftool is a kernel tool for inspection and simple manipulation \
|
|
of eBPF programs and maps."
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
|
UPSTREAM_CHECK_URI = "https://www.kernel.org/"
|
|
|
|
DEPENDS = "binutils-native elfutils-native"
|
|
|
|
inherit native bash-completion
|
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v6.x/linux-${PV}.tar.xz"
|
|
SRC_URI[sha256sum] = "1a4be2fe6b5246aa4ac8987a8a4af34c42a8dd7d08b46ab48516bcc1befbcd83"
|
|
|
|
S = "${UNPACKDIR}/linux-${PV}"
|
|
|
|
DEBUG_PREFIX_MAP_EXTRA:toolchain-gcc = ""
|
|
|
|
EXTRA_OEMAKE = "\
|
|
V=1 \
|
|
-C ${S}/tools/bpf/bpftool \
|
|
O=${B} \
|
|
CROSS=${TARGET_PREFIX} \
|
|
CC="${CC} ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH} ${CFLAGS}" \
|
|
HOSTCC="${BUILD_CC} ${BUILD_CFLAGS}" \
|
|
LD="${LD}" \
|
|
AR=${AR} \
|
|
ARCH=${ARCH} \
|
|
bash_compdir=${prefix}/share/bash-completion \
|
|
"
|
|
|
|
do_compile() {
|
|
oe_runmake
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake DESTDIR=${D} install
|
|
}
|
|
|
|
FILES:${PN} += "${exec_prefix}/sbin/*"
|