Re: [PATCH] tools/dma: fix building from the top level with O=
From: Marek Szyprowski
Date: Tue Oct 13 2026 - 07:44:27 EST
On 12.10.2026 00:33, Sasha Levin wrote:
> "make O=<dir> tools/dma" fails:
>
> Makefile:27: /tools/build/Makefile.include: No such file or directory
>
> tools/Makefile clears srctree, and the dma Makefile only works it out
> again when building_out_of_srctree is not set, which the top-level
> Makefile sets for O= builds.
>
> Also work out srctree when it is empty, as tools/bpf/Makefile does
> since commit a89b2cbf71d64 ("tools, bpf: Fix build for 'make -s
> tools/bpf O=<dir>'").
>
> Fixes: f74ee32963f1b ("tools/dma: move dma_map_benchmark from selftests to tools/dma")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: LLM
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
Applied to dma-mapping-for-next. Thanks!
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland