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