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)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 8 Dec 2015 16:59:47 +0000 (16:59 +0000)
commit832d6646fba8afacbe1416fba5a02450741f9ac2
tree560ede2fa5673d75b963251667281b18bc4cb1c1
parent9dc0560640963d11b6c1295a43c0509bc7f194ed
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>
Gbp-Pq: Topic upstream/am33x_distro_bootcmd
Gbp-Pq: Name 0001-config_distro_bootcmd.h-Use-a-private-variable-for-b.patch
include/config_distro_bootcmd.h