Clone of official tools
paths.py@36:96847d42f010, 2017-06-22 (annotated)
- Committer:
- The Other Jimmy
- Date:
- Thu Jun 22 11:12:28 2017 -0500
- Revision:
- 36:96847d42f010
- Parent:
- 31:8ea194f6145b
Tools release 5.5.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:66f3b5499f7f | 1 | """ |
screamer | 0:66f3b5499f7f | 2 | mbed SDK |
screamer | 0:66f3b5499f7f | 3 | Copyright (c) 2011-2013 ARM Limited |
screamer | 0:66f3b5499f7f | 4 | |
screamer | 0:66f3b5499f7f | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
screamer | 0:66f3b5499f7f | 6 | you may not use this file except in compliance with the License. |
screamer | 0:66f3b5499f7f | 7 | You may obtain a copy of the License at |
screamer | 0:66f3b5499f7f | 8 | |
screamer | 0:66f3b5499f7f | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
screamer | 0:66f3b5499f7f | 10 | |
screamer | 0:66f3b5499f7f | 11 | Unless required by applicable law or agreed to in writing, software |
screamer | 0:66f3b5499f7f | 12 | distributed under the License is distributed on an "AS IS" BASIS, |
screamer | 0:66f3b5499f7f | 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
screamer | 0:66f3b5499f7f | 14 | See the License for the specific language governing permissions and |
screamer | 0:66f3b5499f7f | 15 | limitations under the License. |
screamer | 0:66f3b5499f7f | 16 | """ |
screamer | 0:66f3b5499f7f | 17 | from os.path import join |
screamer | 0:66f3b5499f7f | 18 | from os import getenv |
screamer | 0:66f3b5499f7f | 19 | |
screamer | 0:66f3b5499f7f | 20 | # Conventions about the directory structure |
screamer | 29:1210849dba19 | 21 | from tools.settings import ROOT, BUILD_DIR |
screamer | 0:66f3b5499f7f | 22 | |
screamer | 0:66f3b5499f7f | 23 | # Allow overriding some of the build parameters using environment variables |
screamer | 0:66f3b5499f7f | 24 | BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR |
screamer | 0:66f3b5499f7f | 25 | |
screamer | 0:66f3b5499f7f | 26 | # Embedded Libraries Sources |
The Other Jimmy |
31:8ea194f6145b | 27 | LIB_DIR = join(ROOT, "features/unsupported") |
screamer | 0:66f3b5499f7f | 28 | |
screamer | 0:66f3b5499f7f | 29 | TOOLS = join(ROOT, "tools") |
screamer | 0:66f3b5499f7f | 30 | TOOLS_DATA = join(TOOLS, "data") |
screamer | 0:66f3b5499f7f | 31 | TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders") |
screamer | 0:66f3b5499f7f | 32 | |
screamer | 0:66f3b5499f7f | 33 | # mbed libraries |
The Other Jimmy |
31:8ea194f6145b | 34 | MBED_HEADER = join(ROOT, "mbed.h") |
The Other Jimmy |
31:8ea194f6145b | 35 | MBED_DRIVERS = join(ROOT, "drivers") |
The Other Jimmy |
31:8ea194f6145b | 36 | MBED_PLATFORM = join(ROOT, "platform") |
The Other Jimmy |
31:8ea194f6145b | 37 | MBED_HAL = join(ROOT, "hal") |
screamer | 0:66f3b5499f7f | 38 | |
The Other Jimmy |
31:8ea194f6145b | 39 | MBED_CMSIS_PATH = join(ROOT, "cmsis") |
The Other Jimmy |
31:8ea194f6145b | 40 | MBED_TARGETS_PATH = join(ROOT, "targets") |
screamer | 0:66f3b5499f7f | 41 | |
screamer | 0:66f3b5499f7f | 42 | MBED_LIBRARIES = join(BUILD_DIR, "mbed") |
The Other Jimmy |
31:8ea194f6145b | 43 | MBED_LIBRARIES_DRIVERS = join(MBED_LIBRARIES, "drivers") |
The Other Jimmy |
31:8ea194f6145b | 44 | MBED_LIBRARIES_PLATFORM = join(MBED_LIBRARIES, "platform") |
The Other Jimmy |
31:8ea194f6145b | 45 | MBED_LIBRARIES_HAL = join(MBED_LIBRARIES, "hal") |
screamer | 0:66f3b5499f7f | 46 | |
The Other Jimmy |
31:8ea194f6145b | 47 | MBED_CONFIG_FILE = join(ROOT, "platform/mbed_lib.json") |
screamer | 29:1210849dba19 | 48 | |
screamer | 0:66f3b5499f7f | 49 | # Tests |
screamer | 0:66f3b5499f7f | 50 | TEST_DIR = join(LIB_DIR, "tests") |
screamer | 0:66f3b5499f7f | 51 | HOST_TESTS = join(ROOT, "tools", "host_tests") |
screamer | 0:66f3b5499f7f | 52 | |
screamer | 0:66f3b5499f7f | 53 | # mbed RPC |
screamer | 0:66f3b5499f7f | 54 | MBED_RPC = join(LIB_DIR, "rpc") |
screamer | 0:66f3b5499f7f | 55 | |
screamer | 0:66f3b5499f7f | 56 | RPC_LIBRARY = join(BUILD_DIR, "rpc") |
screamer | 0:66f3b5499f7f | 57 | |
screamer | 0:66f3b5499f7f | 58 | # DSP |
screamer | 0:66f3b5499f7f | 59 | DSP = join(LIB_DIR, "dsp") |
screamer | 0:66f3b5499f7f | 60 | DSP_CMSIS = join(DSP, "cmsis_dsp") |
screamer | 0:66f3b5499f7f | 61 | DSP_ABSTRACTION = join(DSP, "dsp") |
screamer | 0:66f3b5499f7f | 62 | DSP_LIBRARIES = join(BUILD_DIR, "dsp") |
screamer | 0:66f3b5499f7f | 63 | |
screamer | 0:66f3b5499f7f | 64 | # USB Device |
screamer | 0:66f3b5499f7f | 65 | USB = join(LIB_DIR, "USBDevice") |
screamer | 0:66f3b5499f7f | 66 | USB_LIBRARIES = join(BUILD_DIR, "usb") |
screamer | 0:66f3b5499f7f | 67 | |
screamer | 0:66f3b5499f7f | 68 | # Export |
screamer | 0:66f3b5499f7f | 69 | EXPORT_DIR = join(BUILD_DIR, "export") |
screamer | 0:66f3b5499f7f | 70 | EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace") |
screamer | 0:66f3b5499f7f | 71 | EXPORT_TMP = join(EXPORT_DIR, ".temp") |
screamer | 0:66f3b5499f7f | 72 | |
screamer | 0:66f3b5499f7f | 73 | # CppUtest library |
screamer | 0:66f3b5499f7f | 74 | CPPUTEST_DIR = join(ROOT, "..") |
screamer | 0:66f3b5499f7f | 75 | CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest") |
screamer | 0:66f3b5499f7f | 76 | CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include") |
screamer | 0:66f3b5499f7f | 77 | CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest") |
screamer | 0:66f3b5499f7f | 78 | # Platform dependant code is here (for armcc compiler) |
screamer | 29:1210849dba19 | 79 | CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms", |
screamer | 29:1210849dba19 | 80 | "armcc") |
screamer | 29:1210849dba19 | 81 | CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms", |
screamer | 29:1210849dba19 | 82 | "armcc") |
screamer | 0:66f3b5499f7f | 83 | # Function 'main' used to run all compiled UTs |
screamer | 0:66f3b5499f7f | 84 | CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner") |
screamer | 0:66f3b5499f7f | 85 | CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner") |
screamer | 0:66f3b5499f7f | 86 | |
screamer | 0:66f3b5499f7f | 87 | CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest") |