Backup 1

Committer:
borlanic
Date:
Tue Apr 24 11:45:18 2018 +0000
Revision:
0:02dd72d1d465
BaBoRo_test2 - backup 1

Who changed what in which revision?

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