From: Vagrant Cascadian Date: Fri, 3 Oct 2014 15:08:37 -0700 Subject: [U-Boot] [RFC PATCH 1/7] Allow checking in multiple partitions for scan_dev_for_boot. In-Reply-To: <1412374123-6787-1-git-send-email-vagrant@debian.org> References: <1412374123-6787-1-git-send-email-vagrant@debian.org> Message-ID: <1412374123-6787-2-git-send-email-vagrant@debian.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Vagrant Cascadian --- include/config_distro_bootcmd.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index be616e8..5e5e5e3 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -163,7 +163,7 @@ "boot_prefixes=/ /boot/\0" \ "boot_scripts=boot.scr.uimg boot.scr\0" \ BOOTENV_BOOT_TARGETS \ - "bootpart=1\0" \ + "boot_partitions=1\0" \ \ "boot_extlinux=" \ "sysboot ${devtype} ${devnum}:${bootpart} any " \ @@ -194,10 +194,13 @@ "done\0" \ \ "scan_dev_for_boot=" \ - "echo Scanning ${devtype} ${devnum}...; " \ - "for prefix in ${boot_prefixes}; do " \ - "run scan_dev_for_extlinux; " \ - "run scan_dev_for_scripts; " \ + "for partition in ${boot_partitions}; do " \ + "echo Scanning ${devtype} ${devnum}:${partition}...; " \ + "setenv bootpart ${partition};" \ + "for prefix in ${boot_prefixes}; do " \ + "run scan_dev_for_extlinux; " \ + "run scan_dev_for_scripts; " \ + "done;" \ "done\0" \ \ BOOT_TARGET_DEVICES(BOOTENV_DEV) \ -- 2.1.0