diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0f48efca6a..4877c4b644 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -668,7 +668,37 @@ class BBCooker: | |||
668 | if not task.startswith("do_"): | 668 | if not task.startswith("do_"): |
669 | task = "do_%s" % task | 669 | task = "do_%s" % task |
670 | 670 | ||
671 | fulltargetlist = self.checkPackages(pkgs_to_build, task) | 671 | targetlist = self.checkPackages(pkgs_to_build, task) |
672 | fulltargetlist = [] | ||
673 | defaulttask_implicit = '' | ||
674 | defaulttask_explicit = False | ||
675 | wildcard = False | ||
676 | |||
677 | # Wild card expansion: | ||
678 | # Replace string such as "multiconfig:*:bash" | ||
679 | # into "multiconfig:A:bash multiconfig:B:bash bash" | ||
680 | for k in targetlist: | ||
681 | if k.startswith("multiconfig:"): | ||
682 | if wildcard: | ||
683 | bb.fatal('multiconfig conflict') | ||
684 | if k.split(":")[1] == "*": | ||
685 | wildcard = True | ||
686 | for mc in self.multiconfigs: | ||
687 | if mc: | ||
688 | fulltargetlist.append(k.replace('*', mc)) | ||
689 | # implicit default task | ||
690 | else: | ||
691 | defaulttask_implicit = k.split(":")[2] | ||
692 | else: | ||
693 | fulltargetlist.append(k) | ||
694 | else: | ||
695 | defaulttask_explicit = True | ||
696 | fulltargetlist.append(k) | ||
697 | |||
698 | if not defaulttask_explicit and defaulttask_implicit != '': | ||
699 | fulltargetlist.append(defaulttask_implicit) | ||
700 | |||
701 | bb.debug(1,"Target list: %s" % (str(fulltargetlist))) | ||
672 | taskdata = {} | 702 | taskdata = {} |
673 | localdata = {} | 703 | localdata = {} |
674 | 704 | ||