summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/engine.py
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-08-05 12:29:16 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 11:35:21 +0100
commitb123553c1ac495009f11767a3d10a98625410e85 (patch)
tree9a1689b1f77feaa33f3bc9e2848dcdb82fe8a4e6 /scripts/lib/bsp/engine.py
parent717704d12c60cf4d37f10c403ef4c463bc53fcd3 (diff)
downloadpoky-b123553c1ac495009f11767a3d10a98625410e85.tar.gz
yocto-bsp: allow branch display filtering
Add a "branches_base" property that can be used to allow only matching branches to be returned from all_branches(). Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'scripts/lib/bsp/engine.py')
-rw-r--r--scripts/lib/bsp/engine.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index cda1d148e7..8b058093a8 100644
--- a/scripts/lib/bsp/engine.py
+++ b/scripts/lib/bsp/engine.py
@@ -473,6 +473,11 @@ def gen_choices_defer(input_line, context, checklist = False):
473 except KeyError: 473 except KeyError:
474 nameappend = "" 474 nameappend = ""
475 475
476 try:
477 branches_base = input_line.props["branches_base"]
478 except KeyError:
479 branches_base = ""
480
476 filename = input_line.props["filename"] 481 filename = input_line.props["filename"]
477 482
478 closetag_start = filename.find(CLOSE_TAG) 483 closetag_start = filename.find(CLOSE_TAG)
@@ -488,6 +493,8 @@ def gen_choices_defer(input_line, context, checklist = False):
488 captured_context["filename"] = filename 493 captured_context["filename"] = filename
489 context["nameappend"] = nameappend 494 context["nameappend"] = nameappend
490 captured_context["nameappend"] = nameappend 495 captured_context["nameappend"] = nameappend
496 context["branches_base"] = branches_base
497 captured_context["branches_base"] = branches_base
491 498
492 deferred_choice = (input_line, captured_context, checklist) 499 deferred_choice = (input_line, captured_context, checklist)
493 key = name + "_" + filename + "_" + nameappend 500 key = name + "_" + filename + "_" + nameappend