linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: vmx - rebuild generated asm when target changes
@ 2016-11-26  4:24 Nicholas Piggin
  2016-11-28  8:21 ` Naveen N. Rao
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Piggin @ 2016-11-26  4:24 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Nicholas Piggin, Leonidas S . Barbosa, Paulo Flabiano Smorigo,
	linux-crypto, Michael Ellerman, linuxppc-dev

Switching from big endian to little endian can fail to regenerate
the crypto assembly properly. Switch to using standard form of
kbuild dependency checking (i.e., use FORCE and if_changed).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 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 b47da00..16ab2a0 100644
--- a/drivers/crypto/vmx/Makefile
+++ b/drivers/crypto/vmx/Makefile
@@ -1,6 +1,8 @@
 obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
 vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
 
+targets += aesp8-ppc.S ghashp8-ppc.S
+
 ifdef CONFIG_CPU_LITTLE_ENDIAN
 TARGET := linux-ppc64le
 else
@@ -11,13 +13,13 @@ TARGET := linux-ppc64
 endif
 endif
 
-quiet_cmd_perl = PERL $@
+quiet_cmd_perl = PERL    $@
       cmd_perl = $(PERL) $(<) $(TARGET) > $(@)
 
-$(src)/aesp8-ppc.S: $(src)/aesp8-ppc.pl
-	$(call cmd,perl)
+$(src)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE
+	$(call if_changed,perl)
   
-$(src)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl
-	$(call cmd,perl)
+$(src)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE
+	$(call if_changed,perl)
 
 .PRECIOUS: $(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: vmx - rebuild generated asm when target changes
  2016-11-26  4:24 [PATCH] crypto: vmx - rebuild generated asm when target changes Nicholas Piggin
@ 2016-11-28  8:21 ` Naveen N. Rao
  2016-11-28  8:48   ` Nicholas Piggin
  0 siblings, 1 reply; 3+ messages in thread
From: Naveen N. Rao @ 2016-11-28  8:21 UTC (permalink / raw)
  To: Nicholas Piggin
  Cc: Herbert Xu, Leonidas S . Barbosa, linux-crypto,
	Paulo Flabiano Smorigo, linuxppc-dev

On 2016/11/26 03:24PM, Nicholas Piggin wrote:
> Switching from big endian to little endian can fail to regenerate
> the crypto assembly properly. Switch to using standard form of
> kbuild dependency checking (i.e., use FORCE and if_changed).
> 
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>

Hi Nick,
A similar patch is already in:
https://mid.mail-archive.com/linux-crypto@vger.kernel.org/msg21855.html

- Naveen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: vmx - rebuild generated asm when target changes
  2016-11-28  8:21 ` Naveen N. Rao
@ 2016-11-28  8:48   ` Nicholas Piggin
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Piggin @ 2016-11-28  8:48 UTC (permalink / raw)
  To: Naveen N. Rao
  Cc: Herbert Xu, Leonidas S . Barbosa, linux-crypto,
	Paulo Flabiano Smorigo, linuxppc-dev

On Mon, 28 Nov 2016 13:51:36 +0530
"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> wrote:

> On 2016/11/26 03:24PM, Nicholas Piggin wrote:
> > Switching from big endian to little endian can fail to regenerate
> > the crypto assembly properly. Switch to using standard form of
> > kbuild dependency checking (i.e., use FORCE and if_changed).
> > 
> > Signed-off-by: Nicholas Piggin <npiggin@gmail.com>  
> 
> Hi Nick,
> A similar patch is already in:
> https://mid.mail-archive.com/linux-crypto@vger.kernel.org/msg21855.html
> 
> - Naveen
> 

Hi Naveen,

I didn't notice your patch, thanks for pointing it out.

Thanks,
Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-28  8:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-26  4:24 [PATCH] crypto: vmx - rebuild generated asm when target changes Nicholas Piggin
2016-11-28  8:21 ` Naveen N. Rao
2016-11-28  8:48   ` Nicholas Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).