Skip to content

Commit 9db0f2e

Browse files
screamerbg0xc0170
authored andcommitted
Update synch.py script to use the paths defined in paths.py
1 parent d5ad8cb commit 9db0f2e

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

workspace_tools/synch.py

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
sys.path.insert(0, ROOT)
3333

3434
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 *
3636
from workspace_tools.utils import run_cmd
3737

3838
MBED_URL = "mbed.org"
@@ -47,27 +47,27 @@
4747
# Tuple data: (repo_name, list_of_code_dirs, [team])
4848
# team is optional - if not specified, the code is published under mbed_official
4949
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"),
7171
)
7272

7373

@@ -281,8 +281,7 @@ def update_code(repositories):
281281
team_name = r[2] if len(r) == 3 else None
282282
print '\n=== Updating "%s" ===' % repo_name
283283
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)
286285

287286
def update_single_repo(repo):
288287
repos = [r for r in OFFICIAL_CODE if r[0] == repo]

0 commit comments

Comments
 (0)