Clone of official tools
paths.py@31:8ea194f6145b, 2017-01-04 (annotated)
- Committer:
- The Other Jimmy
- Date:
- Wed Jan 04 11:58:24 2017 -0600
- Revision:
- 31:8ea194f6145b
- Parent:
- 29:1210849dba19
- Child:
- 36:96847d42f010
Update tools to follow mbed-os tools release 5.3.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 | # mbed RTOS |
screamer | 13:ab47a20b66f0 | 59 | RTOS = join(ROOT, "rtos") |
screamer | 0:66f3b5499f7f | 60 | MBED_RTX = join(RTOS, "rtx") |
screamer | 0:66f3b5499f7f | 61 | |
screamer | 0:66f3b5499f7f | 62 | RTOS_LIBRARIES = join(BUILD_DIR, "rtos") |
screamer | 0:66f3b5499f7f | 63 | |
screamer | 0:66f3b5499f7f | 64 | # TCP/IP |
screamer | 0:66f3b5499f7f | 65 | NET = join(LIB_DIR, "net") |
screamer | 0:66f3b5499f7f | 66 | |
screamer | 0:66f3b5499f7f | 67 | ETH_SOURCES = join(NET, "eth") |
screamer | 0:66f3b5499f7f | 68 | LWIP_SOURCES = join(NET, "lwip") |
screamer | 0:66f3b5499f7f | 69 | VODAFONE_SOURCES = join(NET, "VodafoneUSBModem") |
screamer | 0:66f3b5499f7f | 70 | CELLULAR_SOURCES = join(NET, "cellular", "CellularModem") |
screamer | 0:66f3b5499f7f | 71 | CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem") |
screamer | 0:66f3b5499f7f | 72 | UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem") |
screamer | 0:66f3b5499f7f | 73 | |
screamer | 0:66f3b5499f7f | 74 | NET_LIBRARIES = join(BUILD_DIR, "net") |
screamer | 0:66f3b5499f7f | 75 | ETH_LIBRARY = join(NET_LIBRARIES, "eth") |
screamer | 0:66f3b5499f7f | 76 | VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem") |
screamer | 0:66f3b5499f7f | 77 | UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem") |
screamer | 0:66f3b5499f7f | 78 | |
screamer | 0:66f3b5499f7f | 79 | # FS |
screamer | 0:66f3b5499f7f | 80 | FS_PATH = join(LIB_DIR, "fs") |
screamer | 0:66f3b5499f7f | 81 | FAT_FS = join(FS_PATH, "fat") |
screamer | 0:66f3b5499f7f | 82 | SD_FS = join(FS_PATH, "sd") |
screamer | 0:66f3b5499f7f | 83 | FS_LIBRARY = join(BUILD_DIR, "fat") |
screamer | 0:66f3b5499f7f | 84 | |
screamer | 0:66f3b5499f7f | 85 | # DSP |
screamer | 0:66f3b5499f7f | 86 | DSP = join(LIB_DIR, "dsp") |
screamer | 0:66f3b5499f7f | 87 | DSP_CMSIS = join(DSP, "cmsis_dsp") |
screamer | 0:66f3b5499f7f | 88 | DSP_ABSTRACTION = join(DSP, "dsp") |
screamer | 0:66f3b5499f7f | 89 | DSP_LIBRARIES = join(BUILD_DIR, "dsp") |
screamer | 0:66f3b5499f7f | 90 | |
screamer | 0:66f3b5499f7f | 91 | # USB Device |
screamer | 0:66f3b5499f7f | 92 | USB = join(LIB_DIR, "USBDevice") |
screamer | 0:66f3b5499f7f | 93 | USB_LIBRARIES = join(BUILD_DIR, "usb") |
screamer | 0:66f3b5499f7f | 94 | |
screamer | 0:66f3b5499f7f | 95 | # USB Host |
screamer | 0:66f3b5499f7f | 96 | USB_HOST = join(LIB_DIR, "USBHost") |
screamer | 0:66f3b5499f7f | 97 | USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host") |
screamer | 0:66f3b5499f7f | 98 | |
screamer | 0:66f3b5499f7f | 99 | # Export |
screamer | 0:66f3b5499f7f | 100 | EXPORT_DIR = join(BUILD_DIR, "export") |
screamer | 0:66f3b5499f7f | 101 | EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace") |
screamer | 0:66f3b5499f7f | 102 | EXPORT_TMP = join(EXPORT_DIR, ".temp") |
screamer | 0:66f3b5499f7f | 103 | |
screamer | 0:66f3b5499f7f | 104 | # CppUtest library |
screamer | 0:66f3b5499f7f | 105 | CPPUTEST_DIR = join(ROOT, "..") |
screamer | 0:66f3b5499f7f | 106 | CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest") |
screamer | 0:66f3b5499f7f | 107 | CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include") |
screamer | 0:66f3b5499f7f | 108 | CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest") |
screamer | 0:66f3b5499f7f | 109 | # Platform dependant code is here (for armcc compiler) |
screamer | 29:1210849dba19 | 110 | CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms", |
screamer | 29:1210849dba19 | 111 | "armcc") |
screamer | 29:1210849dba19 | 112 | CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms", |
screamer | 29:1210849dba19 | 113 | "armcc") |
screamer | 0:66f3b5499f7f | 114 | # Function 'main' used to run all compiled UTs |
screamer | 0:66f3b5499f7f | 115 | CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner") |
screamer | 0:66f3b5499f7f | 116 | CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner") |
screamer | 0:66f3b5499f7f | 117 | |
screamer | 0:66f3b5499f7f | 118 | CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest") |