From 230c5a9572363938ca575352da1e714a7e5fbf5e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Thu, 7 Nov 2019 21:12:35 +0100 Subject: [PATCH] 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 --- kas/config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kas/config.py b/kas/config.py index 2dd4e9e..e22e23a 100644 --- a/kas/config.py +++ b/kas/config.py @@ -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)