Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

paths.py 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. """
  2. mbed SDK
  3. Copyright (c) 2011-2013 ARM Limited
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. """
  14. from os.path import join
  15. from os import getenv
  16. # Conventions about the directory structure
  17. from settings import ROOT, BUILD_DIR
  18. # Allow overriding some of the build parameters using environment variables
  19. BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR
  20. # Embedded Libraries Sources
  21. LIB_DIR = join(ROOT, "libraries")
  22. TOOLS = join(ROOT, "workspace_tools")
  23. TOOLS_DATA = join(TOOLS, "data")
  24. TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders")
  25. # mbed libraries
  26. MBED_BASE = join(LIB_DIR, "mbed")
  27. MBED_API = join(MBED_BASE, "api")
  28. MBED_COMMON = join(MBED_BASE, "common")
  29. MBED_HAL = join(MBED_BASE, "hal")
  30. MBED_TARGETS_PATH = join(MBED_BASE, "targets")
  31. MBED_LIBRARIES = join(BUILD_DIR, "mbed")
  32. # Tests
  33. TEST_DIR = join(LIB_DIR, "tests")
  34. HOST_TESTS = join(ROOT, "workspace_tools", "host_tests")
  35. # mbed RPC
  36. MBED_RPC = join(LIB_DIR, "rpc")
  37. # mbed RTOS
  38. RTOS = join(LIB_DIR, "rtos")
  39. MBED_RTX = join(RTOS, "rtx")
  40. RTOS_ABSTRACTION = join(RTOS, "rtos")
  41. RTOS_LIBRARIES = join(BUILD_DIR, "rtos")
  42. # TCP/IP
  43. NET = join(LIB_DIR, "net")
  44. ETH_SOURCES = join(NET, "eth")
  45. LWIP_SOURCES = join(NET, "lwip")
  46. VODAFONE_SOURCES = join(NET, "VodafoneUSBModem")
  47. CELLULAR_SOURCES = join(NET, "cellular", "CellularModem")
  48. CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem")
  49. UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem")
  50. NET_LIBRARIES = join(BUILD_DIR, "net")
  51. ETH_LIBRARY = join(NET_LIBRARIES, "eth")
  52. VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem")
  53. UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem")
  54. # FS
  55. FS_PATH = join(LIB_DIR, "fs")
  56. FAT_FS = join(FS_PATH, "fat")
  57. SD_FS = join(FS_PATH, "sd")
  58. FS_LIBRARY = join(BUILD_DIR, "fat")
  59. # DSP
  60. DSP = join(LIB_DIR, "dsp")
  61. DSP_CMSIS = join(DSP, "cmsis_dsp")
  62. DSP_ABSTRACTION = join(DSP, "dsp")
  63. DSP_LIBRARIES = join(BUILD_DIR, "dsp")
  64. # USB Device
  65. USB = join(LIB_DIR, "USBDevice")
  66. USB_LIBRARIES = join(BUILD_DIR, "usb")
  67. # USB Host
  68. USB_HOST = join(LIB_DIR, "USBHost")
  69. USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host")
  70. # Export
  71. EXPORT_DIR = join(BUILD_DIR, "export")
  72. EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace")
  73. EXPORT_TMP = join(EXPORT_DIR, ".temp")
  74. # CppUtest library
  75. CPPUTEST_DIR = join(ROOT, "..")
  76. CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest")
  77. CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include")
  78. CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest")
  79. # Platform dependant code is here (for armcc compiler)
  80. CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms", "armcc")
  81. CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms", "armcc")
  82. # Function 'main' used to run all compiled UTs
  83. CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner")
  84. CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner")
  85. CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest")