]> code.ossystems Code Review - openembedded-core.git/commit
uboot: fixes to uboot-extlinux-config attribute values
authorWill Page <wpage@polysync.io>
Tue, 13 Aug 2019 18:37:15 +0000 (11:37 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Aug 2019 16:32:19 +0000 (17:32 +0100)
commit42b44fdd9e63b8d39cf83baecec08328275558ff
tree82b0d07ec7c471bf26c36991ba7aaa917328b21c
parent78a75d240083a80d624074e058c9a222a8a7b5e7
uboot: fixes to uboot-extlinux-config attribute values

The way this class uses overrides to support generation of multiple
sections is subject to two different issues: 1) labels that conflict
with existing override names causing the value for the conflicting label
to be set for all labels, and 2) reusing the override list through each
iteration, prepending each new label to the list of overrides makes
earlier labels' value take precedence over later labels, making later
labels virtually impossible to customize.

The first issue is resolved by removing all label names from overrides
before iterating over labels.  The second issue is resolved by
generating a fresh list of overrides with only the current label added.

The current label is also appended to the list of overrides instead of
prepended, which makes it the highest priority override.  This is
matches the behavior of devtool-source.bbclass, which similarly
monkey-patches overrides.

Closes https://bugzilla.yoctoproject.org/show_bug.cgi?id=13469 .

Signed-off-by: Will Page <wpage@polysync.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/uboot-extlinux-config.bbclass