mirror of https://github.com/ARMmbed/mbed-os.git
Update synch.py script to use the paths defined in paths.py
parent
d5ad8cb949
commit
9db0f2e6e0
|
@ -32,7 +32,7 @@ ROOT = abspath(join(dirname(__file__), ".."))
|
||||||
sys.path.insert(0, ROOT)
|
sys.path.insert(0, ROOT)
|
||||||
|
|
||||||
from workspace_tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR
|
from workspace_tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR
|
||||||
from workspace_tools.paths import LIB_DIR
|
from workspace_tools.paths import *
|
||||||
from workspace_tools.utils import run_cmd
|
from workspace_tools.utils import run_cmd
|
||||||
|
|
||||||
MBED_URL = "mbed.org"
|
MBED_URL = "mbed.org"
|
||||||
|
@ -47,27 +47,27 @@ commit_msg = ''
|
||||||
# Tuple data: (repo_name, list_of_code_dirs, [team])
|
# Tuple data: (repo_name, list_of_code_dirs, [team])
|
||||||
# team is optional - if not specified, the code is published under mbed_official
|
# team is optional - if not specified, the code is published under mbed_official
|
||||||
OFFICIAL_CODE = (
|
OFFICIAL_CODE = (
|
||||||
("mbed-dev" , "mbed"),
|
("mbed-dev" , MBED_BASE),
|
||||||
("mbed-rtos", "rtos"),
|
("mbed-rtos", RTOS),
|
||||||
("mbed-dsp" , "dsp"),
|
("mbed-dsp" , DSP),
|
||||||
("mbed-rpc" , "rpc"),
|
("mbed-rpc" , MBED_RPC),
|
||||||
|
|
||||||
("lwip" , "net/lwip/lwip"),
|
("lwip" , LWIP_SOURCES+"/lwip"),
|
||||||
("lwip-sys", "net/lwip/lwip-sys"),
|
("lwip-sys", LWIP_SOURCES+"/lwip-sys"),
|
||||||
("Socket" , "net/lwip/Socket"),
|
("Socket" , LWIP_SOURCES+"/Socket"),
|
||||||
|
|
||||||
("lwip-eth" , "net/eth/lwip-eth"),
|
("lwip-eth" , LWIP_SOURCES+"/lwip-eth"),
|
||||||
("EthernetInterface", "net/eth/EthernetInterface"),
|
("EthernetInterface", ETH_SOURCES+"/EthernetInterface"),
|
||||||
|
|
||||||
("USBDevice", "USBDevice"),
|
("USBDevice", USB),
|
||||||
("USBHost" , "USBHost"),
|
("USBHost" , USB_HOST),
|
||||||
|
|
||||||
("CellularModem", "net/cellular/CellularModem"),
|
("CellularModem", CELLULAR_SOURCES),
|
||||||
("CellularUSBModem", "net/cellular/CellularUSBModem"),
|
("CellularUSBModem", CELLULAR_USB_SOURCES),
|
||||||
("UbloxUSBModem", "net/cellular/UbloxUSBModem"),
|
("UbloxUSBModem", UBLOX_SOURCES),
|
||||||
("UbloxModemHTTPClientTest", ["tests/net/cellular/http/common", "tests/net/cellular/http/ubloxusb"]),
|
("UbloxModemHTTPClientTest", [TEST_DIR+"/net/cellular/http/common", TEST_DIR+"/net/cellular/http/ubloxusb"]),
|
||||||
("UbloxModemSMSTest", ["tests/net/cellular/sms/common", "tests/net/cellular/sms/ubloxusb"]),
|
("UbloxModemSMSTest", [TEST_DIR+"/net/cellular/sms/common", TEST_DIR+"/net/cellular/sms/ubloxusb"]),
|
||||||
("FATFileSystem", "fs/fat", "mbed-official"),
|
("FATFileSystem", FAT_FS, "mbed-official"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -281,8 +281,7 @@ def update_code(repositories):
|
||||||
team_name = r[2] if len(r) == 3 else None
|
team_name = r[2] if len(r) == 3 else None
|
||||||
print '\n=== Updating "%s" ===' % repo_name
|
print '\n=== Updating "%s" ===' % repo_name
|
||||||
sdk_dirs = [sdk_dir] if type(sdk_dir) != type([]) else sdk_dir
|
sdk_dirs = [sdk_dir] if type(sdk_dir) != type([]) else sdk_dir
|
||||||
sdk_path = [join(LIB_DIR, d) for d in sdk_dirs]
|
update_repo(repo_name, sdk_dirs, team_name)
|
||||||
update_repo(repo_name, sdk_path, team_name)
|
|
||||||
|
|
||||||
def update_single_repo(repo):
|
def update_single_repo(repo):
|
||||||
repos = [r for r in OFFICIAL_CODE if r[0] == repo]
|
repos = [r for r in OFFICIAL_CODE if r[0] == repo]
|
||||||
|
|
Loading…
Reference in New Issue