fbt_options.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import posixpath
  2. # For more details on these options, run 'fbt -h'
  3. # Default hardware target
  4. TARGET_HW = 7
  5. # Optimization flags
  6. ## Optimize for size
  7. COMPACT = 0
  8. ## Optimize for debugging experience
  9. DEBUG = 1
  10. # Suffix to add to files when building distribution
  11. # If OS environment has DIST_SUFFIX set, it will be used instead
  12. DIST_SUFFIX = "local"
  13. # Coprocessor firmware
  14. COPRO_OB_DATA = "scripts/ob.data"
  15. # Must match lib/STM32CubeWB version
  16. COPRO_CUBE_VERSION = "1.13.3"
  17. COPRO_CUBE_DIR = "lib/STM32CubeWB"
  18. # Default radio stack
  19. COPRO_STACK_BIN = "stm32wb5x_BLE_Stack_light_fw.bin"
  20. # Firmware also supports "ble_full", but it might not fit into debug builds
  21. COPRO_STACK_TYPE = "ble_light"
  22. # Leave 0 to let scripts automatically calculate it
  23. COPRO_STACK_ADDR = "0x0"
  24. # If you override COPRO_CUBE_DIR on commandline, override this aswell
  25. COPRO_STACK_BIN_DIR = posixpath.join(
  26. COPRO_CUBE_DIR,
  27. "Projects",
  28. "STM32WB_Copro_Wireless_Binaries",
  29. "STM32WB5x",
  30. )
  31. # Supported toolchain versions
  32. FBT_TOOLCHAIN_VERSIONS = (" 10.3.",)
  33. OPENOCD_OPTS = [
  34. "-f",
  35. "interface/stlink.cfg",
  36. "-c",
  37. "transport select hla_swd",
  38. "-f",
  39. "${FBT_DEBUG_DIR}/stm32wbx.cfg",
  40. "-c",
  41. "stm32wbx.cpu configure -rtos auto",
  42. ]
  43. SVD_FILE = "${FBT_DEBUG_DIR}/STM32WB55_CM4.svd"
  44. # Look for blackmagic probe on serial ports and local network
  45. BLACKMAGIC = "auto"
  46. # Application to start on boot
  47. LOADER_AUTOSTART = ""
  48. FIRMWARE_APPS = {
  49. "default": [
  50. # Svc
  51. "basic_services",
  52. # Apps
  53. "main_apps",
  54. "system_apps",
  55. # Settings
  56. "settings_apps",
  57. # Stock plugins - no longer built into fw, now they're .faps
  58. # Yet you can still build them as a part of fw
  59. # "basic_plugins",
  60. # Debug
  61. # "debug_apps",
  62. ],
  63. "unit_tests": [
  64. "basic_services",
  65. "updater_app",
  66. "unit_tests",
  67. ],
  68. }
  69. FIRMWARE_APP_SET = "default"