fbt_options.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/stm32wb_copro version
  16. COPRO_CUBE_VERSION = "1.15.0"
  17. COPRO_CUBE_DIR = "lib/stm32wb_copro"
  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 as well
  25. COPRO_STACK_BIN_DIR = posixpath.join(COPRO_CUBE_DIR, "firmware")
  26. # Supported toolchain versions
  27. FBT_TOOLCHAIN_VERSIONS = (" 10.3.",)
  28. OPENOCD_OPTS = [
  29. "-f",
  30. "interface/stlink.cfg",
  31. "-c",
  32. "transport select hla_swd",
  33. "-f",
  34. "${FBT_DEBUG_DIR}/stm32wbx.cfg",
  35. "-c",
  36. "stm32wbx.cpu configure -rtos auto",
  37. ]
  38. SVD_FILE = "${FBT_DEBUG_DIR}/STM32WB55_CM4.svd"
  39. # Look for blackmagic probe on serial ports and local network
  40. BLACKMAGIC = "auto"
  41. # Application to start on boot
  42. LOADER_AUTOSTART = ""
  43. FIRMWARE_APPS = {
  44. "default": [
  45. # Svc
  46. "basic_services",
  47. # Apps
  48. "main_apps",
  49. "system_apps",
  50. # Settings
  51. "settings_apps",
  52. ],
  53. "unit_tests": [
  54. "basic_services",
  55. "updater_app",
  56. "unit_tests",
  57. ],
  58. }
  59. FIRMWARE_APP_SET = "default"