summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-08-05 16:27:00 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 11:35:21 +0100
commit2517376ee8f8b691089cad44d5505cd4461c414b (patch)
tree8e56e44b4f3b55fd80618e209f70f048cb4a766b /scripts
parent9078e985acc88b66eb1515aa636b064aae131e75 (diff)
downloadpoky-2517376ee8f8b691089cad44d5505cd4461c414b.tar.gz
yocto-bsp: add standard branch mapping
Add a mechanism to distinguish common-pc variants of standard branches. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/bsp/engine.py21
1 files changed, 21 insertions, 0 deletions
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):
1503 return False 1503 return False
1504 1504
1505 return True 1505 return True
1506
1507
1508def map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch):
1509 """
1510 Return the linux-yocto bsp branch to use with the specified
1511 kbranch. This handles the -standard variants for 3.0 and 3.2; the
1512 other variants don't need mappings.
1513 """
1514 if need_new_kbranch == "y":
1515 kbranch = new_kbranch
1516 else:
1517 kbranch = existing_kbranch
1518
1519 if (kbranch.startswith("standard/default/common-pc-64") or
1520 kbranch.startswith("yocto/standard/common-pc-64")):
1521 return "bsp/common-pc-64/common-pc-64-standard"
1522 if (kbranch.startswith("standard/default/common-pc") or
1523 kbranch.startswith("yocto/standard/common-pc")):
1524 return "bsp/common-pc/common-pc-standard"
1525 else:
1526 return "ktypes/standard"