[openwrt/openwrt] uboot-mediatek: replace patch with accepted commit
LEDE Commits
lede-commits at lists.infradead.org
Wed Apr 20 07:25:14 PDT 2022
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/079828fa54a81b9672c55f7f1d02bd2879a4944a
commit 079828fa54a81b9672c55f7f1d02bd2879a4944a
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Wed Apr 20 15:10:07 2022 +0100
uboot-mediatek: replace patch with accepted commit
Replace pending patch with version accepted upstream.
Other than in the first suggested version, the new property is now
called 'u-boot,bootconf' instead of 'bootconf'.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
...-name-of-FIT-configuration-in-chosen-node.patch | 44 +++++-----------------
1 file changed, 10 insertions(+), 34 deletions(-)
diff --git a/package/boot/uboot-mediatek/patches/280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch b/package/boot/uboot-mediatek/patches/280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch
index 76e272a2c9..8517ffb97c 100644
--- a/package/boot/uboot-mediatek/patches/280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch
+++ b/package/boot/uboot-mediatek/patches/280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch
@@ -1,60 +1,36 @@
-From patchwork Mon Mar 21 23:22:23 2022
-Content-Type: text/plain; charset="utf-8"
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-X-Patchwork-Submitter: Daniel Golle <daniel at makrotopia.org>
-X-Patchwork-Id: 1607954
-Return-Path: <u-boot-bounces at lists.denx.de>
-X-Original-To: incoming at patchwork.ozlabs.org
-Delivered-To: patchwork-incoming at bilbo.ozlabs.org
-Date: Mon, 21 Mar 2022 23:22:23 +0000
+From 5f2d5915f8ea4785bc2b8a26955e176a7898c15b Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel at makrotopia.org>
-To: u-boot at lists.denx.de
-Cc: Simon Glass <sjg at chromium.org>, Alexandru Gagniuc <mr.nuke.me at gmail.com>,
- Patrick Delaunay <patrick.delaunay at foss.st.com>,
- Heinrich Schuchardt <xypron.glpk at gmx.de>
+Date: Tue, 12 Apr 2022 21:00:43 +0100
Subject: [PATCH] image-fdt: save name of FIT configuration in '/chosen' node
-Message-ID: <YjkIr8wmz1XEOVNh at makrotopia.org>
-MIME-Version: 1.0
-Content-Disposition: inline
-X-BeenThere: u-boot at lists.denx.de
-X-Mailman-Version: 2.1.39
-Precedence: list
-List-Id: U-Boot discussion <u-boot.lists.denx.de>
-List-Unsubscribe: <https://lists.denx.de/options/u-boot>,
- <mailto:u-boot-request at lists.denx.de?subject=unsubscribe>
-List-Archive: <https://lists.denx.de/pipermail/u-boot/>
-List-Post: <mailto:u-boot at lists.denx.de>
-List-Help: <mailto:u-boot-request at lists.denx.de?subject=help>
-List-Subscribe: <https://lists.denx.de/listinfo/u-boot>,
- <mailto:u-boot-request at lists.denx.de?subject=subscribe>
-Errors-To: u-boot-bounces at lists.denx.de
-Sender: "U-Boot" <u-boot-bounces at lists.denx.de>
It can be useful for the OS (Linux) to know which configuration has
been chosen by U-Boot when launching a FIT image.
Store the name of the FIT configuration node used in a new string
-attribute called 'bootconf' in the '/chosen' node in device tree.
+property called 'u-boot,bootconf' in the '/chosen' node in device tree.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
+Reviewed-by: Tom Rini <trini at konsulko.com>
---
boot/image-fdt.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
-index 692a9ad3e4..4017bc94a6 100644
+index 692a9ad3e4..fdb69926a2 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -601,6 +601,12 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
goto err;
}
-+ /* Store name of configuration node as bootconf in /chosen node */
++ /* Store name of configuration node as u-boot,bootconf in /chosen node */
+ if (images->fit_uname_cfg)
-+ fdt_find_and_setprop(blob, "/chosen", "bootconf",
++ fdt_find_and_setprop(blob, "/chosen", "u-boot,bootconf",
+ images->fit_uname_cfg,
+ strlen(images->fit_uname_cfg) + 1, 1);
+
/* Update ethernet nodes */
fdt_fixup_ethernet(blob);
#if CONFIG_IS_ENABLED(CMD_PSTORE)
+--
+2.35.3
+
More information about the lede-commits
mailing list