BBR 1 Ebene

Committer:
borlanic
Date:
Mon May 14 11:29:06 2018 +0000
Revision:
0:fbdae7e6d805
BBR

Who changed what in which revision?

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