diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2012-08-05 16:27:00 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-25 14:47:03 +0100 |
commit | 859e0e74c082714821c82df9f42d0a605049121d (patch) | |
tree | 6ec241ff2512b6c91cb09533fca792e9f0e92928 /scripts | |
parent | 179109a45aac13a9488c0049cc1db64c7c5203b5 (diff) | |
download | poky-859e0e74c082714821c82df9f42d0a605049121d.tar.gz |
yocto-bsp: add standard branch mapping
Add a mechanism to distinguish common-pc variants of standard
branches.
(From meta-yocto rev: c313ad936499104235c47f05bd98ef86b990d713)
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/bsp/engine.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index bf6ebaad47..857e5a09c0 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py | |||
@@ -1493,3 +1493,24 @@ def yocto_bsp_list(args, scripts_path, properties_file): | |||
1493 | return False | 1493 | return False |
1494 | 1494 | ||
1495 | return True | 1495 | return True |
1496 | |||
1497 | |||
1498 | def map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch): | ||
1499 | """ | ||
1500 | Return the linux-yocto bsp branch to use with the specified | ||
1501 | kbranch. This handles the -standard variants for 3.0 and 3.2; the | ||
1502 | other variants don't need mappings. | ||
1503 | """ | ||
1504 | if need_new_kbranch == "y": | ||
1505 | kbranch = new_kbranch | ||
1506 | else: | ||
1507 | kbranch = existing_kbranch | ||
1508 | |||
1509 | if (kbranch.startswith("standard/default/common-pc-64") or | ||
1510 | kbranch.startswith("yocto/standard/common-pc-64")): | ||
1511 | return "bsp/common-pc-64/common-pc-64-standard" | ||
1512 | if (kbranch.startswith("standard/default/common-pc") or | ||
1513 | kbranch.startswith("yocto/standard/common-pc")): | ||
1514 | return "bsp/common-pc/common-pc-standard" | ||
1515 | else: | ||
1516 | return "ktypes/standard" | ||