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:
Jan Kiszka 2019-11-07 21:12:35 +01:00
parent 102eac9d9b
commit 230c5a9572

View File

@ -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)