fbt_options.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. "debug/stm32wbx.cfg",
  40. "-c",
  41. "stm32wbx.cpu configure -rtos auto",
  42. "-c",
  43. "init",
  44. ]
  45. SVD_FILE = "debug/STM32WB55_CM4.svd"
  46. # Look for blackmagic probe on serial ports and local network
  47. BLACKMAGIC = "auto"
  48. # Application to start on boot
  49. LOADER_AUTOSTART = ""
  50. FIRMWARE_APPS = {
  51. "default": [
  52. "crypto_start",
  53. # Svc
  54. "basic_services",
  55. # Apps
  56. "basic_apps",
  57. "updater_app",
  58. "storage_move_to_sd",
  59. "archive",
  60. # Settings
  61. "passport",
  62. "system_settings",
  63. "about",
  64. # Plugins
  65. "basic_plugins",
  66. # Debug
  67. "debug_apps",
  68. ],
  69. "unit_tests": [
  70. "basic_services",
  71. "updater_app",
  72. "unit_tests",
  73. ],
  74. }
  75. FIRMWARE_APP_SET = "default"