From: Maxime Ripard <maxime.ripard@free-electrons.com>
Date: Tue, 16 Jan 2018 08:44:14 +0000 (+0100)
Subject: cmd: crc32: Disable by default on sunXi
X-Git-Tag: v2025.01-rc5-pxa1908~5055^2~11
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/login.html?a=commitdiff_plain;h=b02436089af064bc6d7c2fee256d23e5ba135454;p=u-boot.git

cmd: crc32: Disable by default on sunXi

The sunXi arm64 build has overflown, leading to the main U-boot binary
overwriting the environment when flashing the new image, or even worse,
overwriting itself when we're calling saveenv.

Disable this command that is not critical until we can adress the issue
properly.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
---

diff --git a/cmd/Kconfig b/cmd/Kconfig
index faa8bc62b5..dbeb41c86d 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -397,6 +397,7 @@ menu "Memory commands"
 config CMD_CRC32
 	bool "crc32"
 	select HASH
+	default n if ARCH_SUNXI
 	default y
 	help
 	  Compute CRC32.