From: Rob Landley <rob@landley.net>
Subject: [PATCH] Fix building arm without perl (broken by commit 603b44162325)

diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig
index 1e6b008f8fca..3a754d43165e 100644
--- a/lib/crypto/Kconfig
+++ b/lib/crypto/Kconfig
@@ -164,8 +164,8 @@ config CRYPTO_LIB_SHA256
 config CRYPTO_LIB_SHA256_ARCH
 	bool
 	depends on CRYPTO_LIB_SHA256 && !UML
-	default y if ARM && !CPU_V7M
-	default y if ARM64
+	default y if ARM && !CPU_V7M && $(success,perl --version)
+	default y if ARM64 && $(success,perl --version)
 	default y if MIPS && CPU_CAVIUM_OCTEON
 	default y if PPC && SPE
 	default y if RISCV && 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
