summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-07 13:35:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-10 14:46:38 +0100
commit1f68b0bd98ab0d9aeb7e5dae560d9d505ffac7c3 (patch)
treefc1d636189ead1d83a5d252bddc5240c5b25db7f /bitbake/lib/bb/cooker.py
parent32df42cff5370bb0bda51f0f637357c18ee3b1eb (diff)
downloadpoky-1f68b0bd98ab0d9aeb7e5dae560d9d505ffac7c3.tar.gz
bitbake: multiconfig: Switch from 'multiconfig' -> 'mc'
After real world use its clear the "multiconfig:" prefix to multiconfig tasks, whilst clear, is also clumbersome. Switch to use the short version instead. mcdepends will continue to work with "multiconfig:" for now as well. The commandline will only accept mc: going forward. [YOCTO #11168] (Bitbake rev: 821daf093b76504067a8b77dfa4b181af6ec92b4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index d183abab6d..855a180523 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -505,7 +505,7 @@ class BBCooker:
505 self.reset() 505 self.reset()
506 506
507 def mc_base(p): 507 def mc_base(p):
508 if p.startswith('multiconfig:'): 508 if p.startswith('mc:'):
509 s = p.split(':') 509 s = p.split(':')
510 if len(s) == 2: 510 if len(s) == 2:
511 return s[1] 511 return s[1]
@@ -583,10 +583,10 @@ class BBCooker:
583 wildcard = False 583 wildcard = False
584 584
585 # Wild card expansion: 585 # Wild card expansion:
586 # Replace string such as "multiconfig:*:bash" 586 # Replace string such as "mc:*:bash"
587 # into "multiconfig:A:bash multiconfig:B:bash bash" 587 # into "mc:A:bash mc:B:bash bash"
588 for k in targetlist: 588 for k in targetlist:
589 if k.startswith("multiconfig:"): 589 if k.startswith("mc:"):
590 if wildcard: 590 if wildcard:
591 bb.fatal('multiconfig conflict') 591 bb.fatal('multiconfig conflict')
592 if k.split(":")[1] == "*": 592 if k.split(":")[1] == "*":
@@ -619,7 +619,7 @@ class BBCooker:
619 runlist = [] 619 runlist = []
620 for k in fulltargetlist: 620 for k in fulltargetlist:
621 mc = "" 621 mc = ""
622 if k.startswith("multiconfig:"): 622 if k.startswith("mc:"):
623 mc = k.split(":")[1] 623 mc = k.split(":")[1]
624 k = ":".join(k.split(":")[2:]) 624 k = ":".join(k.split(":")[2:])
625 ktask = task 625 ktask = task
@@ -700,7 +700,7 @@ class BBCooker:
700 @staticmethod 700 @staticmethod
701 def add_mc_prefix(mc, pn): 701 def add_mc_prefix(mc, pn):
702 if mc: 702 if mc:
703 return "multiconfig:%s:%s" % (mc, pn) 703 return "mc:%s:%s" % (mc, pn)
704 return pn 704 return pn
705 705
706 def buildDependTree(self, rq, taskdata): 706 def buildDependTree(self, rq, taskdata):
@@ -1477,7 +1477,7 @@ class BBCooker:
1477 ntargets = [] 1477 ntargets = []
1478 for target in runlist: 1478 for target in runlist:
1479 if target[0]: 1479 if target[0]:
1480 ntargets.append("multiconfig:%s:%s:%s" % (target[0], target[1], target[2])) 1480 ntargets.append("mc:%s:%s:%s" % (target[0], target[1], target[2]))
1481 ntargets.append("%s:%s" % (target[1], target[2])) 1481 ntargets.append("%s:%s" % (target[1], target[2]))
1482 1482
1483 for mc in self.multiconfigs: 1483 for mc in self.multiconfigs:
@@ -1607,7 +1607,7 @@ class BBCooker:
1607 bb.providers.buildWorldTargetList(self.recipecaches[mc], task) 1607 bb.providers.buildWorldTargetList(self.recipecaches[mc], task)
1608 for t in self.recipecaches[mc].world_target: 1608 for t in self.recipecaches[mc].world_target:
1609 if mc: 1609 if mc:
1610 t = "multiconfig:" + mc + ":" + t 1610 t = "mc:" + mc + ":" + t
1611 pkgs_to_build.append(t) 1611 pkgs_to_build.append(t)
1612 1612
1613 if 'universe' in pkgs_to_build: 1613 if 'universe' in pkgs_to_build:
@@ -1626,7 +1626,7 @@ class BBCooker:
1626 bb.debug(1, "Skipping %s for universe tasks as task %s doesn't exist" % (t, task)) 1626 bb.debug(1, "Skipping %s for universe tasks as task %s doesn't exist" % (t, task))
1627 continue 1627 continue
1628 if mc: 1628 if mc:
1629 t = "multiconfig:" + mc + ":" + t 1629 t = "mc:" + mc + ":" + t
1630 pkgs_to_build.append(t) 1630 pkgs_to_build.append(t)
1631 1631
1632 return pkgs_to_build 1632 return pkgs_to_build