From 2517376ee8f8b691089cad44d5505cd4461c414b Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Sun, 5 Aug 2012 16:27:00 -0500 Subject: yocto-bsp: add standard branch mapping Add a mechanism to distinguish common-pc variants of standard branches. Signed-off-by: Tom Zanussi --- scripts/lib/bsp/engine.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'scripts') diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 8b058093a8..756b8828e2 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -1503,3 +1503,24 @@ def yocto_bsp_list(args, scripts_path, properties_file): return False return True + + +def map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch): + """ + Return the linux-yocto bsp branch to use with the specified + kbranch. This handles the -standard variants for 3.0 and 3.2; the + other variants don't need mappings. + """ + if need_new_kbranch == "y": + kbranch = new_kbranch + else: + kbranch = existing_kbranch + + if (kbranch.startswith("standard/default/common-pc-64") or + kbranch.startswith("yocto/standard/common-pc-64")): + return "bsp/common-pc-64/common-pc-64-standard" + if (kbranch.startswith("standard/default/common-pc") or + kbranch.startswith("yocto/standard/common-pc")): + return "bsp/common-pc/common-pc-standard" + else: + return "ktypes/standard" -- cgit v1.2.3-54-g00ecf