diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 237dec6b12..23779ed107 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -176,6 +176,19 @@ do_install() {
             cp -a --parents $(find tools/arch/${ARCH}/ -type f) $kerneldir/build/
         fi
 
+        # In sdk, when CONFIG_DEBUG_INFO_BTF is enabled, building external modules
+        # that use BPF may require the 'resolve_btfids' host tool. This tool
+        # and others require sources from tools/bpf/ and tools/lib/ to be built
+        # within the SDK environment.
+        if grep -q "CONFIG_DEBUG_INFO_BTF=y" ${B}/.config; then
+            echo "NOTE: CONFIG_DEBUG_INFO_BTF is enabled, including BPF host tools sources in kernel-devsrc."
+            # The 'rust' example copies the whole dir. We do the same for consistency.
+            # This includes resolve_btfids and other potential BPF tools.
+            cp -r tools/bpf ${kerneldir}/build/tools/
+            # This also requires the shared tools/lib directory.
+            cp -r tools/lib ${kerneldir}/build/tools/
+        fi
+
         if [ "${ARCH}" = "arm64" ]; then
             # arch/arm64/include/asm/xen references arch/arm
             cp -a --parents arch/arm/include/asm/xen $kerneldir/build/
