config_distro_bootcmd: do not scan boot partitions if distro_bootpart is defined
PATCH 1/1 config_distro_bootcmd: do not scan boot partitions if distro_bootpart is defined
From: Hugo Villeneuve <[email protected]>
For some projects, designing the active bootable partition is done by setting distro_bootpart in the environment instead of changing the bootable flag on the active partition.
This patch makes it possible to support both models by scanning boot partitions only if distro_bootpart is not defined in the environment.
--- include/config_distro_bootcmd.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
include/config_distro_bootcmd.h +6 -2
@@ -543,8 +543,12 @@"\0" \ \"scan_dev_for_boot_part=" \ -SCAN_DEV_FOR_BOOT_PARTS \ -"env exists devplist || setenv devplist 1; " \ +"if env exists distro_bootpart; then " \ +"setenv devplist ${distro_bootpart}; " \ +"else " \ +SCAN_DEV_FOR_BOOT_PARTS \ +"env exists devplist || setenv devplist 1; " \ +"fi; " \"for distro_bootpart in ${devplist}; do " \"if fstype ${devtype} " \"${devnum}:${distro_bootpart} " \
base-commit: c24a72c35abe9cbbeb72e2effc6b6c73cd828a32
Signature · 1 line
2.47.3
Quoted 8 lines · Hugo Villeneuve
For some projects, designing the active bootable partition is done by setting
distro_bootpartin the environment instead of changing the bootable flag on the active partition.This patch makes it possible to support both models by scanning boot partitions only if
distro_bootpartis not defined in the environment.[...]
Applied to u-boot/master, thanks!
[1/1] config_distro_bootcmd: do not scan boot partitions if distro_bootpart is defined
commit: f7bef8f81f4f1b97b071b14a8c1f61df6285fc63
Signature · 1 line
Tom