[PATCH] powerpc: crypto/vmx: various build fixes

Subsystems: crypto api, the rest

STALE3550d

5 messages, 3 authors, 2016-11-17 · open the first message on its own page

[PATCH] powerpc: crypto/vmx: various build fixes

From: Naveen N. Rao <hidden>
Date: 2016-11-16 15:12:06

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: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Naveen N. Rao <redacted>
---
Michael,
I've added your SOB here though you didn't explicitly include it in your
previous mail. I hope that's fine from your end.

- Naveen

 drivers/crypto/vmx/Makefile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/crypto/vmx/Makefile b/drivers/crypto/vmx/Makefile
index de6e241..55f7c39 100644
--- a/drivers/crypto/vmx/Makefile
+++ b/drivers/crypto/vmx/Makefile
@@ -10,10 +10,12 @@ endif
 quiet_cmd_perl = PERL $@
       cmd_perl = $(PERL) $(<) $(TARGET) > $(@)
 
-$(src)/aesp8-ppc.S: $(src)/aesp8-ppc.pl
-	$(call cmd,perl)
+targets += aesp8-ppc.S ghashp8-ppc.S
+
+$(obj)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE
+	$(call if_changed,perl)
   
-$(src)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl
-	$(call cmd,perl)
+$(obj)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE
+	$(call if_changed,perl)
 
-.PRECIOUS: $(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S
+clean-files := aesp8-ppc.S ghashp8-ppc.S
-- 
2.10.2

Re: [PATCH] powerpc: crypto/vmx: various build fixes

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-11-17 00:52:01

"Naveen N. Rao" [off-list ref] writes:
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: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Naveen N. Rao <redacted>
---
Michael,
I've added your SOB here though you didn't explicitly include it in your
previous mail. I hope that's fine from your end.
Yeah that's fine, thanks.

Crypto patches usually have a subject like:

crypto: vmx - Various build fixes


But maybe Herbert can fix it up for you when he applies this.

cheers

Re: [PATCH] powerpc: crypto/vmx: various build fixes

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2016-11-17 13:03:12

On Thu, Nov 17, 2016 at 11:51:56AM +1100, Michael Ellerman wrote:
But maybe Herbert can fix it up for you when he applies this.
Sure I can fix it up.

Cheers,
--
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] powerpc: crypto/vmx: various build fixes

From: Naveen N. Rao <hidden>
Date: 2016-11-17 14:22:58

On 2016/11/17 09:03PM, Herbert Xu wrote:
On Thu, Nov 17, 2016 at 11:51:56AM +1100, Michael Ellerman wrote:
quoted
Crypto patches usually have a subject like:

crypto: vmx - Various build fixes
Ok.
quoted
But maybe Herbert can fix it up for you when he applies this.
Sure I can fix it up.
Thanks,
- Naveen

Re: [PATCH] powerpc: crypto/vmx: various build fixes

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2016-11-17 15:40:26

On Wed, Nov 16, 2016 at 08:41:46PM +0530, Naveen N. Rao wrote:
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: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Naveen N. Rao <redacted>
Patch applied.  Thanks.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help