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

cmd: misc: 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.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
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 49dd3f95e1..c399169910 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1138,6 +1138,7 @@ config CMD_GETTIME
 # TODO: rename to CMD_SLEEP
 config CMD_MISC
 	bool "sleep"
+	default n if ARCH_SUNXI
 	default y
 	help
 	  Delay execution for some time