public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 3/3] Revert "refactor loading of DT overlays in uboot"
Date: Wed,  9 Aug 2023 10:01:46 +0200	[thread overview]
Message-ID: <20230809080146.13786-4-ubely@ilbers.de> (raw)
In-Reply-To: <20230809080146.13786-1-ubely@ilbers.de>

This reverts commit 680ad2617fc21565bbc4cc7facabc07c6173870f.
---
 meta/recipes-bsp/u-boot-script/files/update-u-boot-script | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-bsp/u-boot-script/files/update-u-boot-script b/meta/recipes-bsp/u-boot-script/files/update-u-boot-script
index 14a81563..e9ace15e 100755
--- a/meta/recipes-bsp/u-boot-script/files/update-u-boot-script
+++ b/meta/recipes-bsp/u-boot-script/files/update-u-boot-script
@@ -63,11 +63,13 @@ if [ -n "${OVERLAYS}" ]; then
 		if ! echo $OVERLAY | grep -q "^/"; then
 			OVERLAY_PATH=/usr/lib/linux-image-${KERNEL_VERSION}/
 		fi
-		echo "echo Loading ${OVERLAY_PATH}${OVERLAY} ..." >> ${BOOT_CMD}
+		echo "for entry in ${OVERLAY}; do" >> ${BOOT_CMD}
+		echo "echo Loading ${OVERLAY_PATH}\${entry}..." >> ${BOOT_CMD}
 		echo "load \${devtype} \${devnum}:${ROOT_PARTITION}" \
-		     "\${overlay_addr_r} ${OVERLAY_PATH}${OVERLAY}" \
+		     "\${overlay_addr_r} ${OVERLAY_PATH}\${entry}" \
 		     >> ${BOOT_CMD}
 		echo "fdt apply \${overlay_addr_r}" >> ${BOOT_CMD}
+		echo "done" >> ${BOOT_CMD}
 	done
 fi
 
-- 
2.20.1


  parent reply	other threads:[~2023-08-09  8:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-09  8:01 [PATCH 0/3] Parital revert of DT overlays patches Uladzimir Bely
2023-08-09  8:01 ` [PATCH 1/3] Revert "use builtin DT for nanopi-neo target" Uladzimir Bely
2023-08-09  8:01 ` [PATCH 2/3] Revert "u-boot-script: add support to use builtin dt" Uladzimir Bely
2023-08-09  8:01 ` Uladzimir Bely [this message]
2023-08-09  8:53 ` [PATCH 0/3] Parital revert of DT overlays patches Uladzimir Bely
2023-08-10 10:53 ` Uladzimir Bely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230809080146.13786-4-ubely@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox