Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: vmx - various build fixes

First up, clean up the generated .S files properly on a 'make clean'.
Secondly, force re-generation of these files when building for different
endian-ness than what was built previously. Finally, generate the new
files in the build tree, rather than the source tree.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Naveen N. Rao and committed by
Herbert Xu
18f47f5e 7a0b86b1

+8 -6
+8 -6
drivers/crypto/vmx/Makefile
··· 10 10 quiet_cmd_perl = PERL $@ 11 11 cmd_perl = $(PERL) $(<) $(TARGET) > $(@) 12 12 13 - $(src)/aesp8-ppc.S: $(src)/aesp8-ppc.pl 14 - $(call cmd,perl) 15 - 16 - $(src)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl 17 - $(call cmd,perl) 13 + targets += aesp8-ppc.S ghashp8-ppc.S 18 14 19 - .PRECIOUS: $(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S 15 + $(obj)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE 16 + $(call if_changed,perl) 17 + 18 + $(obj)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE 19 + $(call if_changed,perl) 20 + 21 + clean-files := aesp8-ppc.S ghashp8-ppc.S