Re: [PATCH] kselftest/arm64: signal: copy each test binary only once

From: Mark Brown

Date: Thu Oct 15 2026 - 14:30:18 EST


On Wed, Oct 14, 2026 at 04:01:40PM -0400, Sasha Levin wrote:
> The signal tests are built in testcases/ and then copied to the output
> directory. The copy rule lists every generated program as a target and
> copies all of them in each recipe:

The build stuff for the signal testcases is a menance, it's being far
too cute.

> -$(TEST_GEN_PROGS): $(PROGS)
> - cp $(PROGS) $(OUTPUT)/
> +$(TEST_GEN_PROGS): $(OUTPUT)/%: testcases/%
> + cp $< $@

You'd have thought that'd be clearer with two separate rules but the
obvious doesn't work and we're already being so clever I think this is
fine:

Reviewed-by: Mark Brown <broonie@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature