summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-04-24 18:46:42 +0100
committerStefano Babic <sbabic@denx.de>2018-04-26 08:53:22 +0200
commit2948089815437232aab9eff54d0abdc2949a22ae (patch)
tree4c1e8944146c589a06cc3a6b8c7b3173446ad690 /include/configs
parent95b649f27d7e399825782ab51688a4f2cb24c47f (diff)
downloadu-boot-2948089815437232aab9eff54d0abdc2949a22ae.tar.gz
warp7: select uuid partition based on rootpart
Assigning the UUID discovery path to a tweakable environment variable means that later steps in the boot process - particularly a boot script can change the target root partition of a particular Linux boot. Retargeting the rootfs is an important feature when doing ping/pong upgrades allowing a boot script to select ping or pong as necessary without reprogramming the bootloader. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Tested-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/warp7.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/warp7.h b/include/configs/warp7.h
index 344042c9b3..54b3b31608 100644
--- a/include/configs/warp7.h
+++ b/include/configs/warp7.h
@@ -45,7 +45,8 @@
"ip_dyn=yes\0" \
"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
- "finduuid=part uuid mmc 0:2 uuid\0" \
+ "rootpart=" __stringify(CONFIG_WARP7_ROOT_PART) "\0" \
+ "finduuid=part uuid mmc 0:${rootpart} uuid\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=PARTUUID=${uuid} rootwait rw\0" \
"loadbootscript=" \