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

Mark Brown broonie at kernel.org
Thu Oct 15 11:29:59 PDT 2026


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 at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261015/96c0a39e/attachment.sig>


More information about the linux-arm-kernel mailing list