SConscript 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # RT-Thread building script for component
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. src = Split('''
  6. chip_common/fpu_init.c
  7. chip_common/iap.c
  8. chip_common/ring_buffer.c
  9. chip_common/rtc_ut.c
  10. chip_5410x/chip_5410x.c
  11. chip_5410x/clock_5410x.c
  12. chip_5410x/crc_5410x.c
  13. chip_5410x/fifo_5410x.c
  14. chip_5410x/gpiogroup_5410x.c
  15. chip_5410x/gpio_5410x.c
  16. chip_5410x/hw_adc.c
  17. chip_5410x/hw_dmaaltd.c
  18. chip_5410x/hw_dmaaltd_rom_api.c
  19. chip_5410x/hw_i2cmd.c
  20. chip_5410x/hw_i2cmd_rom_api.c
  21. chip_5410x/hw_i2cmond.c
  22. chip_5410x/hw_i2cmond_rom_api.c
  23. chip_5410x/hw_i2csd.c
  24. chip_5410x/hw_i2csd_rom_api.c
  25. chip_5410x/hw_spimd.c
  26. chip_5410x/hw_spimd_rom_api.c
  27. chip_5410x/hw_spisd.c
  28. chip_5410x/hw_spisd_rom_api.c
  29. chip_5410x/hw_uart.c
  30. chip_5410x/iocon_5410x.c
  31. chip_5410x/pinint_5410x.c
  32. chip_5410x/pll_5410x.c
  33. chip_5410x/ritimer_5410x.c
  34. chip_5410x/romapi_adc.c
  35. chip_5410x/romapi_dma.c
  36. chip_5410x/romapi_i2cm.c
  37. chip_5410x/romapi_i2cmon.c
  38. chip_5410x/romapi_i2cs.c
  39. chip_5410x/romapi_spim.c
  40. chip_5410x/romapi_spis.c
  41. chip_5410x/romapi_uart.c
  42. chip_5410x/rtc_5410x.c
  43. chip_5410x/sct_5410x.c
  44. chip_5410x/sct_pwm_5410x.c
  45. chip_5410x/stopwatch_5410x.c
  46. chip_5410x/syscon_5410x.c
  47. chip_5410x/sysinit_5410x.c
  48. chip_5410x/timer_5410x.c
  49. chip_5410x/utick_5410x.c
  50. chip_5410x/wwdt_5410x.c
  51. ''')
  52. #LIBS = [cwd + '/chip_5410x/power_lib/keil/lib_power']
  53. #lpc_chip\chip_5410x\power_lib\lpcxpresso
  54. # add for startup script
  55. if rtconfig.PLATFORM in ['gcc']:
  56. LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
  57. LIBS = ['libpower']
  58. elif rtconfig.PLATFORM in ['armcc', 'armclang']:
  59. LIBPATH = [cwd + '/chip_5410x/power_lib/keil']
  60. LIBS = ['lib_power']
  61. CPPPATH = [cwd + '/chip_common',cwd + '/chip_5410x',cwd + '/chip_5410x/config']
  62. group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH,LIBS = LIBS,LIBPATH=LIBPATH)
  63. Return('group')