populate_sdk_base/image: Fix races for variable mappings
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Mar 2013 17:43:41 +0000 (17:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Mar 2013 13:14:57 +0000 (13:14 +0000)
commit88917d86347795257c3bec31c836b235a8ed3e31
tree7f56396e293961f18b2eb4a8fc4c52b039dd0975
parent37882462afee08fde6b5900687fc8ec65d63f944
populate_sdk_base/image: Fix races for variable mappings

When using the -c populate_sdk option, images are not generated quite as
they should be under certain circumstances. For example the dropbear
feature may not get replaced with openssh, leading to both being installed
with an appropriate rootfs failure.

This patch moves the remapping logic to later points in the code, ensuring
there is no conflict. The result is slightly simpler too as an added bonus.

[YOCTO #3749]

(From OE-Core rev: 90cfa16bd4a02ada84ef94f6ae6f182beb8bdc01)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass
meta/classes/populate_sdk_base.bbclass