|
32 | 32 | sys.path.insert(0, ROOT)
|
33 | 33 |
|
34 | 34 | from workspace_tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR
|
35 |
| -from workspace_tools.paths import LIB_DIR |
| 35 | +from workspace_tools.paths import * |
36 | 36 | from workspace_tools.utils import run_cmd
|
37 | 37 |
|
38 | 38 | MBED_URL = "mbed.org"
|
|
47 | 47 | # Tuple data: (repo_name, list_of_code_dirs, [team])
|
48 | 48 | # team is optional - if not specified, the code is published under mbed_official
|
49 | 49 | OFFICIAL_CODE = (
|
50 |
| - ("mbed-dev" , "mbed"), |
51 |
| - ("mbed-rtos", "rtos"), |
52 |
| - ("mbed-dsp" , "dsp"), |
53 |
| - ("mbed-rpc" , "rpc"), |
54 |
| - |
55 |
| - ("lwip" , "net/lwip/lwip"), |
56 |
| - ("lwip-sys", "net/lwip/lwip-sys"), |
57 |
| - ("Socket" , "net/lwip/Socket"), |
58 |
| - |
59 |
| - ("lwip-eth" , "net/eth/lwip-eth"), |
60 |
| - ("EthernetInterface", "net/eth/EthernetInterface"), |
61 |
| - |
62 |
| - ("USBDevice", "USBDevice"), |
63 |
| - ("USBHost" , "USBHost"), |
64 |
| - |
65 |
| - ("CellularModem", "net/cellular/CellularModem"), |
66 |
| - ("CellularUSBModem", "net/cellular/CellularUSBModem"), |
67 |
| - ("UbloxUSBModem", "net/cellular/UbloxUSBModem"), |
68 |
| - ("UbloxModemHTTPClientTest", ["tests/net/cellular/http/common", "tests/net/cellular/http/ubloxusb"]), |
69 |
| - ("UbloxModemSMSTest", ["tests/net/cellular/sms/common", "tests/net/cellular/sms/ubloxusb"]), |
70 |
| - ("FATFileSystem", "fs/fat", "mbed-official"), |
| 50 | + ("mbed-dev" , MBED_BASE), |
| 51 | + ("mbed-rtos", RTOS), |
| 52 | + ("mbed-dsp" , DSP), |
| 53 | + ("mbed-rpc" , MBED_RPC), |
| 54 | + |
| 55 | + ("lwip" , LWIP_SOURCES+"/lwip"), |
| 56 | + ("lwip-sys", LWIP_SOURCES+"/lwip-sys"), |
| 57 | + ("Socket" , LWIP_SOURCES+"/Socket"), |
| 58 | + |
| 59 | + ("lwip-eth" , LWIP_SOURCES+"/lwip-eth"), |
| 60 | + ("EthernetInterface", ETH_SOURCES+"/EthernetInterface"), |
| 61 | + |
| 62 | + ("USBDevice", USB), |
| 63 | + ("USBHost" , USB_HOST), |
| 64 | + |
| 65 | + ("CellularModem", CELLULAR_SOURCES), |
| 66 | + ("CellularUSBModem", CELLULAR_USB_SOURCES), |
| 67 | + ("UbloxUSBModem", UBLOX_SOURCES), |
| 68 | + ("UbloxModemHTTPClientTest", [TEST_DIR+"/net/cellular/http/common", TEST_DIR+"/net/cellular/http/ubloxusb"]), |
| 69 | + ("UbloxModemSMSTest", [TEST_DIR+"/net/cellular/sms/common", TEST_DIR+"/net/cellular/sms/ubloxusb"]), |
| 70 | + ("FATFileSystem", FAT_FS, "mbed-official"), |
71 | 71 | )
|
72 | 72 |
|
73 | 73 |
|
@@ -281,8 +281,7 @@ def update_code(repositories):
|
281 | 281 | team_name = r[2] if len(r) == 3 else None
|
282 | 282 | print '\n=== Updating "%s" ===' % repo_name
|
283 | 283 | sdk_dirs = [sdk_dir] if type(sdk_dir) != type([]) else sdk_dir
|
284 |
| - sdk_path = [join(LIB_DIR, d) for d in sdk_dirs] |
285 |
| - update_repo(repo_name, sdk_path, team_name) |
| 284 | + update_repo(repo_name, sdk_dirs, team_name) |
286 | 285 |
|
287 | 286 | def update_single_repo(repo):
|
288 | 287 | repos = [r for r in OFFICIAL_CODE if r[0] == repo]
|
|
0 commit comments