config: avoid duplicates in BBMULTICONFIG
Collecting all declared multiconfigs in a set rather than a list avoids duplicates in the resulting string when multiple targets with the same multiconfig are declared. Signed-off-by: Mert Kirpici <mert.kirpici@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
36ab0549ce
commit
e79910aa29
@ -164,8 +164,8 @@ class Config:
|
||||
"""
|
||||
Returns the multiconfig array as bitbake string
|
||||
"""
|
||||
multiconfigs = []
|
||||
multiconfigs = set()
|
||||
for target in self.get_bitbake_targets():
|
||||
if target.startswith('multiconfig:') or target.startswith('mc:'):
|
||||
multiconfigs.append(target.split(':')[1])
|
||||
multiconfigs.add(target.split(':')[1])
|
||||
return ' '.join(multiconfigs)
|
||||
|
Loading…
Reference in New Issue
Block a user