Add support for new multiconfig syntax
Recent bitbake requires to declare multiconfig targets via "mc:". Use that chance to refactor the function and match on the colon as well. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
102eac9d9b
commit
230c5a9572
@ -165,7 +165,8 @@ class Config:
|
||||
"""
|
||||
Returns the multiconfig array as bitbake string
|
||||
"""
|
||||
return ' '.join(set(i.split(':')[1]
|
||||
for i in
|
||||
self.get_bitbake_targets()
|
||||
if i.startswith('multiconfig')))
|
||||
multiconfigs = []
|
||||
for target in self.get_bitbake_targets():
|
||||
if target.startswith('multiconfig:') or target.startswith('mc:'):
|
||||
multiconfigs.append(target.split(':')[1])
|
||||
return ' '.join(multiconfigs)
|
||||
|
Loading…
Reference in New Issue
Block a user