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)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:18:31 +0000 (14:18 -0400)
commit59d03cb37700e2e204451e83b38c326df0435ff8
tree890b70a41fc1d8ffde47ac5ebd8d050f6401eff8
parent2da87ab3539264af595d8cb2d6dc7e087f1f1ca7
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