Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples/bpf: fix broken vmlinux path for VMLINUX_BTF #8378

Closed
wants to merge 1 commit into from

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: samples/bpf: fix broken vmlinux path for VMLINUX_BTF
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=926806

Commit 13b2548 ("kbuild: change working directory to external
module directory with M=") changed kbuild working directory of bpf
samples to $(srctree)/samples/bpf, which broke the vmlinux path for
VMLINUX_BTF, as the Makefile assumes the current work directory to be
$(srctree):

  Makefile:316: *** Cannot find a vmlinux for VMLINUX_BTF at any of "  /path/to/linux/samples/bpf/vmlinux", build the kernel or set VMLINUX_BTF like "VMLINUX_BTF=/sys/kernel/btf/vmlinux" or VMLINUX_H variable.  Stop.

Correctly refer to the kernel source directory using $(srctree).

Fixes: 13b2548 ("kbuild: change working directory to external module directory with M=")
Tested-by: Ruowen Qin <[email protected]>
Signed-off-by: Jinghao Jia <[email protected]>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: c45323b
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=926806
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=926806 expired. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant