[kvm-unit-tests PATCH] build: retain intermediate .aux.o targets
Segher Boessenkool
segher at kernel.crashing.org
Wed Jun 12 18:28:47 AEST 2024
On Wed, Jun 12, 2024 at 02:42:32PM +1000, Nicholas Piggin wrote:
> arm, powerpc, riscv, build .aux.o targets with implicit pattern rules
> in dependency chains that cause them to be made as intermediate files,
> which get removed when make finishes. This results in unnecessary
> partial rebuilds. If make is run again, this time the .aux.o targets
> are not intermediate, possibly due to being made via different
> dependencies.
>
> Adding .aux.o files to .PRECIOUS prevents them being removed and solves
> the rebuild problem.
>
> s390x does not have the problem because .SECONDARY prevents dependancies
> from being built as intermediate. However the same change is made for
> s390x, for consistency.
This is exactly what .SECONDARY is for, as its documentation says,
even. Wouldn't it be better to just add a .SECONDARY to the other
targets as well?
Segher
More information about the Linuxppc-dev
mailing list