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