linux/arch/arm64
Leonard Crestez b5a8883909 crypto: arm,arm64 - Fix random regeneration of S_shipped
commit 6aaf49b495 upstream.

The decision to rebuild .S_shipped is made based on the relative
timestamps of .S_shipped and .pl files but git makes this essentially
random. This means that the perl script might run anyway (usually at
most once per checkout), defeating the whole purpose of _shipped.

Fix by skipping the rule unless explicit make variables are provided:
REGENERATE_ARM_CRYPTO or REGENERATE_ARM64_CRYPTO.

This can produce nasty occasional build failures downstream, for example
for toolchains with broken perl. The solution is minimally intrusive to
make it easier to push into stable.

Another report on a similar issue here: https://lkml.org/lkml/2018/3/8/1379

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-04-08 14:26:32 +02:00
..
boot arm64: dts: renesas: salvator-common: Add EthernetAVB PHY reset 2018-03-19 08:42:55 +01:00
configs ARM/arm64: SoC platform updates for v4.14 2017-09-10 20:35:46 -07:00
crypto crypto: arm,arm64 - Fix random regeneration of S_shipped 2018-04-08 14:26:32 +02:00
include kmemcheck: stop using GFP_NOTRACK and SLAB_NOTRACK 2018-02-22 15:42:23 +01:00
kernel arm64: cpufeature: Fix CTR_EL0 field definitions 2018-02-28 10:19:42 +01:00
kvm arm64: Add missing Falkor part number for branch predictor hardening 2018-02-22 15:42:25 +01:00
lib arm64: uaccess: Mask __user pointers for __arch_{clear, copy_*}_user 2018-02-16 20:22:52 +01:00
mm mm/vmalloc: add interfaces to free unmapped page table 2018-03-28 18:24:38 +02:00
net bpf, arm64: fix out of bounds access in tail call 2018-03-11 16:23:22 +01:00
xen arm64: kpti: Fix the interaction between ASID switching and software PAN 2018-02-16 20:22:49 +01:00
Kconfig arm64: Add skeleton to harden the branch predictor against aliasing attacks 2018-02-16 20:22:53 +01:00
Kconfig.debug arm64: relocation testing module 2017-04-04 17:03:32 +01:00
Kconfig.platforms ARM: arm64: Devicetree updates for v4.14 2017-09-10 20:54:48 -07:00
Makefile arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27 2017-12-20 10:10:29 +01:00