diff options
Diffstat (limited to 'meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb')
| -rw-r--r-- | meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb b/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb new file mode 100644 index 0000000000..bc7712ce4d --- /dev/null +++ b/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "Inspect and manipulate eBPF programs and maps" | ||
| 2 | DESCRIPTION = "bpftool is a kernel tool for inspection and simple manipulation \ | ||
| 3 | of eBPF programs and maps." | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
| 6 | UPSTREAM_CHECK_URI = "https://www.kernel.org/" | ||
| 7 | |||
| 8 | DEPENDS = "binutils-native elfutils-native" | ||
| 9 | |||
| 10 | inherit native bash-completion | ||
| 11 | |||
| 12 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v6.x/linux-${PV}.tar.xz" | ||
| 13 | SRC_URI[sha256sum] = "1a4be2fe6b5246aa4ac8987a8a4af34c42a8dd7d08b46ab48516bcc1befbcd83" | ||
| 14 | |||
| 15 | S = "${UNPACKDIR}/linux-${PV}" | ||
| 16 | |||
| 17 | EXTRA_OEMAKE = "\ | ||
| 18 | V=1 \ | ||
| 19 | -C ${S}/tools/bpf/bpftool \ | ||
| 20 | O=${B} \ | ||
| 21 | CROSS=${TARGET_PREFIX} \ | ||
| 22 | CC="${CC} ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH} ${CFLAGS}" \ | ||
| 23 | HOSTCC="${BUILD_CC} ${BUILD_CFLAGS}" \ | ||
| 24 | LD="${LD}" \ | ||
| 25 | AR=${AR} \ | ||
| 26 | ARCH=${ARCH} \ | ||
| 27 | bash_compdir=${prefix}/share/bash-completion \ | ||
| 28 | " | ||
| 29 | |||
| 30 | do_compile() { | ||
| 31 | oe_runmake | ||
| 32 | } | ||
| 33 | |||
| 34 | do_install() { | ||
| 35 | oe_runmake DESTDIR=${D} install | ||
| 36 | } | ||
| 37 | |||
| 38 | FILES:${PN} += "${exec_prefix}/sbin/*" | ||
