Re: [PATCH 0/3] selftests/bpf: Fixes for out-of-tree builds

From: Ihor Solodrai

Date: Thu Aug 06 2026 - 16:32:43 EST


On 7/28/26 5:06 PM, Ricardo B. Marlière (SUSE) wrote:
> Hello,
>
> When doing a simple out-of-tree build, e.g.:
>
> $ git clean -fdx
> $ mkdir ../build
> $ make defconfig O=../build
> $ scripts/kconfig/merge_config.sh -O ../build ../build/.config tools/testing/selftests/bpf/{config,config.x86_64}
> $ make O=../build
> $ make -C tools/testing/selftests install O=$PWD/../build SKIP_TARGETS= TARGETS=bpf
>
> Will leave behind several build artifacts:
>
> [...]
>
> This series fixes this.

Hi Ricardo,

I think we should wait for the selftests makefile refactoring series [1]
to land first, and then address the issues you've found.

When you do the respin, please test both build and clean with an
in-tree kernel build and with O=

Sending a few comments in a bit.

[1] https://lore.kernel.org/bpf/20260804170156.1709916-1-nickolay.lysenko@xxxxxxxxx/


>
> [...]
>