mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
"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 commita89b2cbf71("tools, bpf: Fix build for 'make -s tools/bpf O=<dir>'"). Fixes:f74ee32963("tools/dma: move dma_map_benchmark from selftests to tools/dma") Cc: [email protected] Assisted-by: LLM Signed-off-by: Sasha Levin <[email protected]> Acked-by: Qinxin Xia <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marek Szyprowski <[email protected]>