diff options
Diffstat (limited to 'scripts/lib/bsp')
-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 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 | |||
1508 | def 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" | ||