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 @@ +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}" + +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/*" diff --git a/meta-oe/recipes-kernel/bpftool/bpftool.bb b/meta-oe/recipes-kernel/bpftool/bpftool.bb index d19746184c..4f4d4a8670 100644 --- a/meta-oe/recipes-kernel/bpftool/bpftool.bb +++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb @@ -27,7 +27,6 @@ SECURITY_CFLAGS = "" do_configure[depends] += "virtual/kernel:do_shared_workdir" COMPATIBLE_HOST = "(x86_64|aarch64|riscv64).*-linux" -COMPATIBLE_HOST:libc-musl = 'null' do_compile() { oe_runmake @@ -47,4 +46,4 @@ B = "${WORKDIR}/${BPN}-${PV}" FILES:${PN} += "${exec_prefix}/sbin/*" -BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "nativesdk"