Committer:
borlanic
Date:
Thu Mar 29 07:02:09 2018 +0000
Revision:
0:380207fcb5c1
Encoder, IMU --> OK; Controller --> in bearbeitung

Who changed what in which revision?

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