android_kernel_sony_sdm845/drivers/crypto/vmx
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Ellerman c07956c464 crypto: vmx - Avoid weird build failures
[ Upstream commit 4ee812f6143d78d8ba1399671d78c8d78bf2817c ]

In the vmx crypto Makefile we assign to a variable called TARGET and
pass that to the aesp8-ppc.pl and ghashp8-ppc.pl scripts.

The variable is meant to describe what flavour of powerpc we're
building for, eg. either 32 or 64-bit, and big or little endian.

Unfortunately TARGET is a fairly common name for a make variable, and
if it happens that TARGET is specified as a command line parameter to
make, the value specified on the command line will override our value.

In particular this can happen if the kernel Makefile is driven by an
external Makefile that uses TARGET for something.

This leads to weird build failures, eg:
  nonsense  at /build/linux/drivers/crypto/vmx/ghashp8-ppc.pl line 45.
  /linux/drivers/crypto/vmx/Makefile:20: recipe for target 'drivers/crypto/vmx/ghashp8-ppc.S' failed

Which shows that we passed an empty value for $(TARGET) to the perl
script, confirmed with make V=1:

  perl /linux/drivers/crypto/vmx/ghashp8-ppc.pl  > drivers/crypto/vmx/ghashp8-ppc.S

We can avoid this confusion by using override, to tell make that we
don't want anything to override our variable, even a value specified
on the command line. We can also use a less common name, given the
script calls it "flavour", let's use that.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-04 13:40:06 +01:00
..
.gitignore crypto: vmx - Ignore generated files 2016-07-20 22:41:44 +08:00
aes.c crypto: vmx - Remove overly verbose printk from AES init routines 2018-06-16 09:52:35 +02:00
aes_cbc.c crypto: vmx - Fix sleep-in-atomic bugs 2018-09-09 20:01:25 +02:00
aes_ctr.c crypto: vmx - Remove overly verbose printk from AES init routines 2018-06-16 09:52:35 +02:00
aes_xts.c crypto: vmx - Fix sleep-in-atomic bugs 2018-09-09 20:01:25 +02:00
aesp8-ppc.h crypto: vmx - Adding asm subroutines for XTS 2016-07-19 15:42:43 +08:00
aesp8-ppc.pl crypto: vmx - CTR: always increment IV as quadword 2019-05-31 06:48:11 -07:00
ghash.c crypto: vmx - ghash: do nosimd fallback manually 2019-06-11 12:22:35 +02:00
ghashp8-ppc.pl crypto: vmx - Fixing GHASH Key issue on little endian 2015-08-18 10:30:36 +08:00
Kconfig crypto: vmx - Ensure ghash-generic is enabled 2016-10-02 22:33:44 +08:00
Makefile crypto: vmx - Avoid weird build failures 2020-01-04 13:40:06 +01:00
ppc-xlate.pl crypto: vmx - Fix ABI detection 2016-06-13 17:43:04 +08:00
vmx.c powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00