]> code.ossystems Code Review - bsp/u-boot.git/commit
config_distro_bootcmd.h: Use a private variable for bootpart
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 28 Aug 2015 13:01:54 +0000 (15:01 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 27 Oct 2015 12:24:21 +0000 (10:24 -0200)
commitb8bc0336f61a1280856557da29e0e5cbbb1afd53
tree428ab650cd9bdb7e7b0b6c3872c028c7f9af8a6c
parente5bd2900df449e17c139d44b54be98ea01b30647
config_distro_bootcmd.h: Use a private variable for bootpart

Hush has an oddity where using ${var} causes var to resolved in the the global
address space (iotw the environment) first and only afterwards will the local
variable space be searched.

This causes odd side-effects when iterating over the boot partitions
using ${bootpart} if the environment also has a bootpart variable (e.g. for
the various TI boards). Fix this by using the hopefully more unique
${distro_bootpart} instead of ${bootpart}.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
include/config_distro_bootcmd.h