wscript 808 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. def build(bld):
  4. bld.ap_stlib(
  5. name= 'iofirmware_libs',
  6. ap_vehicle='iofirmware',
  7. ap_libraries= [
  8. 'AP_Common',
  9. 'AP_HAL',
  10. 'AP_HAL_Empty',
  11. 'AP_Math',
  12. 'AP_RCProtocol',
  13. 'AP_BoardConfig',
  14. 'AP_SBusOut'
  15. ],
  16. exclude_src=[
  17. 'libraries/AP_HAL_ChibiOS/Storage.cpp'
  18. ]
  19. )
  20. bld.ap_program(
  21. program_name='iofirmware_lowpolh',
  22. use='iofirmware_libs',
  23. program_groups=['bin','iofirmware'],
  24. defines=['IOMCU_IMU_HEATER_POLARITY=0']
  25. )
  26. bld.ap_program(
  27. program_name='iofirmware_highpolh',
  28. use='iofirmware_libs',
  29. program_groups=['bin','iofirmware'],
  30. defines=['IOMCU_IMU_HEATER_POLARITY=1']
  31. )