Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more
paths.py
00001 """ 00002 mbed SDK 00003 Copyright (c) 2011-2013 ARM Limited 00004 00005 Licensed under the Apache License, Version 2.0 (the "License"); 00006 you may not use this file except in compliance with the License. 00007 You may obtain a copy of the License at 00008 00009 http://www.apache.org/licenses/LICENSE-2.0 00010 00011 Unless required by applicable law or agreed to in writing, software 00012 distributed under the License is distributed on an "AS IS" BASIS, 00013 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 See the License for the specific language governing permissions and 00015 limitations under the License. 00016 """ 00017 from os.path import join 00018 from os import getenv 00019 00020 # Conventions about the directory structure 00021 from tools.settings import ROOT, BUILD_DIR 00022 00023 # Allow overriding some of the build parameters using environment variables 00024 BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR 00025 00026 # Embedded Libraries Sources 00027 LIB_DIR = join(ROOT, "features/unsupported") 00028 00029 TOOLS = join(ROOT, "tools") 00030 TOOLS_DATA = join(TOOLS, "data") 00031 TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders") 00032 00033 # mbed libraries 00034 MBED_HEADER = join(ROOT, "mbed.h") 00035 MBED_DRIVERS = join(ROOT, "drivers") 00036 MBED_PLATFORM = join(ROOT, "platform") 00037 MBED_HAL = join(ROOT, "hal") 00038 00039 MBED_CMSIS_PATH = join(ROOT, "cmsis") 00040 MBED_TARGETS_PATH = join(ROOT, "targets") 00041 00042 MBED_LIBRARIES = join(BUILD_DIR, "mbed") 00043 MBED_LIBRARIES_DRIVERS = join(MBED_LIBRARIES, "drivers") 00044 MBED_LIBRARIES_PLATFORM = join(MBED_LIBRARIES, "platform") 00045 MBED_LIBRARIES_HAL = join(MBED_LIBRARIES, "hal") 00046 00047 MBED_CONFIG_FILE = join(ROOT, "platform/mbed_lib.json") 00048 00049 # Tests 00050 TEST_DIR = join(LIB_DIR, "tests") 00051 HOST_TESTS = join(ROOT, "tools", "host_tests") 00052 00053 # mbed RPC 00054 MBED_RPC = join(LIB_DIR, "rpc") 00055 00056 RPC_LIBRARY = join(BUILD_DIR, "rpc") 00057 00058 # mbed RTOS 00059 RTOS = join(ROOT, "rtos") 00060 MBED_RTX = join(RTOS, "rtx") 00061 00062 RTOS_LIBRARIES = join(BUILD_DIR, "rtos") 00063 00064 # TCP/IP 00065 NET = join(LIB_DIR, "net") 00066 00067 ETH_SOURCES = join(NET, "eth") 00068 LWIP_SOURCES = join(NET, "lwip") 00069 VODAFONE_SOURCES = join(NET, "VodafoneUSBModem") 00070 CELLULAR_SOURCES = join(NET, "cellular", "CellularModem") 00071 CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem") 00072 UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem") 00073 00074 NET_LIBRARIES = join(BUILD_DIR, "net") 00075 ETH_LIBRARY = join(NET_LIBRARIES, "eth") 00076 VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem") 00077 UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem") 00078 00079 # DSP 00080 DSP = join(LIB_DIR, "dsp") 00081 DSP_CMSIS = join(DSP, "cmsis_dsp") 00082 DSP_ABSTRACTION = join(DSP, "dsp") 00083 DSP_LIBRARIES = join(BUILD_DIR, "dsp") 00084 00085 # USB Device 00086 USB = join(LIB_DIR, "USBDevice") 00087 USB_LIBRARIES = join(BUILD_DIR, "usb") 00088 00089 # USB Host 00090 USB_HOST = join(LIB_DIR, "USBHost") 00091 USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host") 00092 00093 # Export 00094 EXPORT_DIR = join(BUILD_DIR, "export") 00095 EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace") 00096 EXPORT_TMP = join(EXPORT_DIR, ".temp") 00097 00098 # CppUtest library 00099 CPPUTEST_DIR = join(ROOT, "..") 00100 CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest") 00101 CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include") 00102 CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest") 00103 # Platform dependant code is here (for armcc compiler) 00104 CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms", 00105 "armcc") 00106 CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms", 00107 "armcc") 00108 # Function 'main' used to run all compiled UTs 00109 CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner") 00110 CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner") 00111 00112 CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest")
Generated on Tue Jul 12 2022 11:02:30 by
1.7.2