From b123553c1ac495009f11767a3d10a98625410e85 Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Sun, 5 Aug 2012 12:29:16 -0500 Subject: 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 --- scripts/lib/bsp/engine.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/lib/bsp/engine.py') 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): except KeyError: nameappend = "" + try: + branches_base = input_line.props["branches_base"] + except KeyError: + branches_base = "" + filename = input_line.props["filename"] closetag_start = filename.find(CLOSE_TAG) @@ -488,6 +493,8 @@ def gen_choices_defer(input_line, context, checklist = False): captured_context["filename"] = filename context["nameappend"] = nameappend captured_context["nameappend"] = nameappend + context["branches_base"] = branches_base + captured_context["branches_base"] = branches_base deferred_choice = (input_line, captured_context, checklist) key = name + "_" + filename + "_" + nameappend -- cgit v1.2.3-54-g00ecf