Skip to content

Commit 3b2b061

Browse files
committed
move workspace to tools
1 parent dca69e0 commit 3b2b061

35 files changed

+155
-155
lines changed

tools/build.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
sys.path.insert(0, ROOT)
2828

2929

30-
from workspace_tools.toolchains import TOOLCHAINS
31-
from workspace_tools.targets import TARGET_NAMES, TARGET_MAP
32-
from workspace_tools.options import get_default_options_parser
33-
from workspace_tools.build_api import build_mbed_libs, build_lib
34-
from workspace_tools.build_api import mcu_toolchain_matrix
35-
from workspace_tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library
36-
from workspace_tools.build_api import print_build_results
37-
from workspace_tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT
30+
from tools.toolchains import TOOLCHAINS
31+
from tools.targets import TARGET_NAMES, TARGET_MAP
32+
from tools.options import get_default_options_parser
33+
from tools.build_api import build_mbed_libs, build_lib
34+
from tools.build_api import mcu_toolchain_matrix
35+
from tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library
36+
from tools.build_api import print_build_results
37+
from tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT
3838

3939
if __name__ == '__main__':
4040
start = time()

tools/build_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
from os.path import join, exists, basename
2626
from time import time
2727

28-
from workspace_tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException
29-
from workspace_tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON
30-
from workspace_tools.targets import TARGET_NAMES, TARGET_MAP
31-
from workspace_tools.libraries import Library
32-
from workspace_tools.toolchains import TOOLCHAIN_CLASSES
28+
from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException
29+
from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON
30+
from tools.targets import TARGET_NAMES, TARGET_MAP
31+
from tools.libraries import Library
32+
from tools.toolchains import TOOLCHAIN_CLASSES
3333
from jinja2 import FileSystemLoader
3434
from jinja2.environment import Environment
3535

tools/build_release.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
ROOT = abspath(join(dirname(__file__), ".."))
2626
sys.path.insert(0, ROOT)
2727

28-
from workspace_tools.build_api import build_mbed_libs
29-
from workspace_tools.build_api import write_build_report
30-
from workspace_tools.targets import TARGET_MAP
31-
from workspace_tools.test_exporters import ReportExporter, ResultExporterType
32-
from workspace_tools.test_api import SingleTestRunner
33-
from workspace_tools.test_api import singletest_in_cli_mode
34-
from workspace_tools.paths import TEST_DIR
35-
from workspace_tools.tests import TEST_MAP
28+
from tools.build_api import build_mbed_libs
29+
from tools.build_api import write_build_report
30+
from tools.targets import TARGET_MAP
31+
from tools.test_exporters import ReportExporter, ResultExporterType
32+
from tools.test_api import SingleTestRunner
33+
from tools.test_api import singletest_in_cli_mode
34+
from tools.paths import TEST_DIR
35+
from tools.tests import TEST_MAP
3636

3737
OFFICIAL_MBED_LIBRARY_BUILD = (
3838
('LPC11U24', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),

tools/build_travis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run_builds(dry_run):
137137
toolchain_list = build["toolchains"]
138138
if type(toolchain_list) != type([]): toolchain_list = [toolchain_list]
139139
for toolchain in toolchain_list:
140-
cmdline = "python workspace_tools/build.py -m %s -t %s -j 4 -c --silent "% (build["target"], toolchain)
140+
cmdline = "python tools/build.py -m %s -t %s -j 4 -c --silent "% (build["target"], toolchain)
141141
libs = build.get("libs", [])
142142
if libs:
143143
cmdline = cmdline + " ".join(["--" + l for l in libs])
@@ -161,14 +161,14 @@ def run_test_linking(dry_run):
161161
for test_lib in tests:
162162
test_names = tests[test_lib]
163163
test_lib_switch = "--" + test_lib if test_lib else ""
164-
cmdline = "python workspace_tools/make.py -m %s -t %s -c --silent %s -n %s " % (link["target"], toolchain, test_lib_switch, ",".join(test_names))
164+
cmdline = "python tools/make.py -m %s -t %s -c --silent %s -n %s " % (link["target"], toolchain, test_lib_switch, ",".join(test_names))
165165
print "Executing: " + cmdline
166166
if not dry_run:
167167
if os.system(cmdline) != 0:
168168
sys.exit(1)
169169

170170
def run_test_testsuite(dry_run):
171-
cmdline = "python workspace_tools/singletest.py --version"
171+
cmdline = "python tools/singletest.py --version"
172172
print "Executing: " + cmdline
173173
if not dry_run:
174174
if os.system(cmdline) != 0:

tools/data/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from workspace_tools.targets import TARGETS
17+
from tools.targets import TARGETS
1818

1919
DEFAULT_SUPPORT = {}
2020
CORTEX_ARM_SUPPORT = {}

tools/dev/rpc_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from os.path import join
1818
from jinja2 import Template
1919

20-
from workspace_tools.paths import TOOLS_DATA, MBED_RPC
20+
from tools.paths import TOOLS_DATA, MBED_RPC
2121

2222
RPC_TEMPLATES_PATH = join(TOOLS_DATA, "rpc")
2323

tools/export/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
from shutil import copytree, rmtree, copy
2020
import yaml
2121

22-
from workspace_tools.utils import mkdir
23-
from workspace_tools.export import uvision4, codered, gccarm, ds5_5, iar, emblocks, coide, kds, zip, simplicityv3, atmelstudio, sw4stm32
24-
from workspace_tools.export.exporters import zip_working_directory_and_clean_up, OldLibrariesException
25-
from workspace_tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP
22+
from tools.utils import mkdir
23+
from tools.export import uvision4, codered, gccarm, ds5_5, iar, emblocks, coide, kds, zip, simplicityv3, atmelstudio, sw4stm32
24+
from tools.export.exporters import zip_working_directory_and_clean_up, OldLibrariesException
25+
from tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP
2626

2727
from project_generator_definitions.definitions import ProGenDef
2828

tools/export/emblocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"""
1717
from exporters import Exporter
1818
from os.path import splitext, basename
19-
from workspace_tools.targets import TARGETS
19+
from tools.targets import TARGETS
2020

2121
# filter all the GCC_ARM targets out of the target list
2222
gccTargets = []

tools/export/exporters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from contextlib import closing
99
from zipfile import ZipFile, ZIP_DEFLATED
1010

11-
from workspace_tools.utils import mkdir
12-
from workspace_tools.toolchains import TOOLCHAIN_CLASSES
13-
from workspace_tools.targets import TARGET_MAP
11+
from tools.utils import mkdir
12+
from tools.toolchains import TOOLCHAIN_CLASSES
13+
from tools.targets import TARGET_MAP
1414

1515
from project_generator.generate import Generator
1616
from project_generator.project import Project

tools/export/iar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import os
1919
from project_generator_definitions.definitions import ProGenDef
2020

21-
from workspace_tools.export.exporters import Exporter
22-
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES
21+
from tools.export.exporters import Exporter
22+
from tools.targets import TARGET_MAP, TARGET_NAMES
2323

2424
# If you wish to add a new target, add it to project_generator_definitions, and then
2525
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)

0 commit comments

Comments
 (0)