summaryrefslogtreecommitdiff
path: root/tools/dma/Makefile
AgeCommit message (Collapse)Author
10 daystools/dma: fix building from the top level with O=Sasha Levin
"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@vger.kernel.org Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org> Acked-by: Qinxin Xia <xiaqinxin@huawei.com> Link: https://lore.kernel.org/r/20261011223358.2327625-4-sashal@kernel.org Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 daystools/dma: fix building with O=Sasha Levin
With O= set, "all" depends on $(OUTPUT)dma_map_benchmark, but the only rule builds dma_map_benchmark in the source directory, and built-in rules are disabled: make: *** No rule to make target '<O>/dma_map_benchmark', needed by 'all'. Stop. Build $(OUTPUT)dma_map_benchmark. Fixes: f74ee32963f1b ("tools/dma: move dma_map_benchmark from selftests to tools/dma") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org> Acked-by: Qinxin Xia <xiaqinxin@huawei.com> Link: https://lore.kernel.org/r/20261011223358.2327625-3-sashal@kernel.org Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2025-10-29tools/dma: move dma_map_benchmark from selftests to tools/dmaQinxin Xia
dma_map_benchmark is a standalone developer tool rather than an automated selftest. It has no pass/fail criteria, expects manual invocation, and is built as a normal userspace binary. Move it to tools/dma/ and add a minimal Makefile. Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com> Suggested-by: Barry Song <baohua@kernel.org> Signed-off-by: Qinxin Xia <xiaqinxin@huawei.com> Acked-by: Barry Song <baohua@kernel.org> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20251028120900.2265511-3-xiaqinxin@huawei.com