aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Schlehofer <pepe.schlehofer@gmail.com>2022-04-29 17:52:29 +0200
committerPetr Štetiar <ynezz@true.cz>2022-06-14 21:41:35 +0200
commit68a6d7aaabde681addada967be21f7eb298c67f1 (patch)
treec5ebdb24335400c3591e2c744bfa8b908055e632
parent3cfe050c4a683ecef25d6ded05b1d240921a121a (diff)
downloadupstream-68a6d7aaabde681addada967be21f7eb298c67f1.tar.gz
upstream-68a6d7aaabde681addada967be21f7eb298c67f1.tar.bz2
upstream-68a6d7aaabde681addada967be21f7eb298c67f1.zip
uboot-mvebu: add patch to enable setexpr for clearfog boards
Option CMD_SETEXPR is already default in U-boot [1], since this was disabled since initial version for this board, there is send this patch to U-boot mailing list to enable it. It is required to use in OpenWrt bootscript for these boards [2]. [1] https://source.denx.de/u-boot/u-boot/-/blob/e95afa56753cebcd20a5114b6d121f281b789006/cmd/Kconfig#L1504 [2] https://github.com/openwrt/openwrt/blob/852126680e21edc71c0c66561ae5a6d7479dcc67/target/linux/mvebu/image/clearfog.bootscript#L7 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> (cherry picked from commit b3c2072504867b8ca00dde37f531edf0cfbe3359)
-rw-r--r--package/boot/uboot-mvebu/patches/103-arm-mvebu-clearfog_defconfig-enable-setexpr-command.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/boot/uboot-mvebu/patches/103-arm-mvebu-clearfog_defconfig-enable-setexpr-command.patch b/package/boot/uboot-mvebu/patches/103-arm-mvebu-clearfog_defconfig-enable-setexpr-command.patch
new file mode 100644
index 0000000000..dae43ea942
--- /dev/null
+++ b/package/boot/uboot-mvebu/patches/103-arm-mvebu-clearfog_defconfig-enable-setexpr-command.patch
@@ -0,0 +1,31 @@
+From 40a67a9403deafdac05564b7350af49a71e12373 Mon Sep 17 00:00:00 2001
+From: Josef Schlehofer <pepe.schlehofer@gmail.com>
+Date: Fri, 29 Apr 2022 17:34:53 +0200
+Subject: [PATCH] arm: mvebu: clearfog_defconfig: enable setexpr command
+
+This command is useful in U-boot scripts and it is being used by
+OpenWrt bootscript for this board [1]. Otherwise shell scripting
+commands are enabled by default in cmd/Kconfig.
+
+[1] https://github.com/openwrt/openwrt/blob/852126680e21edc71c0c66561ae5a6d7479dcc67/target/linux/mvebu/image/clearfog.bootscript#L7
+
+[2] https://source.denx.de/u-boot/u-boot/-/blob/e95afa56753cebcd20a5114b6d121f281b789006/cmd/Kconfig#L1504
+
+Fixes: 0299c90f396c5b2971a4bac596339f4b03661c27 ("arm: mvebu: Add
+SolidRun ClearFog Armada 38x initial support")
+
+Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
+---
+ configs/clearfog_defconfig | 1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/configs/clearfog_defconfig
++++ b/configs/clearfog_defconfig
+@@ -35,7 +35,6 @@ CONFIG_CMD_MMC=y
+ CONFIG_CMD_PCI=y
+ CONFIG_CMD_SPI=y
+ CONFIG_CMD_USB=y
+-# CONFIG_CMD_SETEXPR is not set
+ CONFIG_CMD_TFTPPUT=y
+ CONFIG_CMD_CACHE=y
+ CONFIG_CMD_TIME=y