auto-ci.py 744 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import os
  2. import sys
  3. BSP_ROOT = '../bsp'
  4. unsupported = """
  5. bf533
  6. dev3210
  7. jz47xx
  8. ls1bdev
  9. m16c62p
  10. microblaze
  11. mini4020
  12. nuc140
  13. nios_ii
  14. pic32ethernet
  15. upd70f3454
  16. wh44b0
  17. xplorer4330
  18. """
  19. failed = """
  20. stm32f0x
  21. """
  22. avr = """
  23. avr32uc3b0
  24. """
  25. ppc = """
  26. taihu
  27. """
  28. x86 = """
  29. simulator
  30. x86
  31. """
  32. arm = """
  33. at91sam9260
  34. efm32
  35. lm3s8962
  36. lm3s9b9x
  37. lm4f232
  38. lpc1114
  39. lpc122x
  40. lpc176x
  41. lpc178x
  42. lpc2148
  43. lpc2478
  44. mb9bf500r
  45. mb9bf506r
  46. mini2440
  47. sam7s
  48. sam7x
  49. stm32f107
  50. stm32f10x
  51. stm32f20x
  52. stm32f40x
  53. """.split()
  54. for item in arm:
  55. project_dir = os.path.join(BSP_ROOT, item)
  56. if os.path.isfile(os.path.join(project_dir, 'SConstruct')):
  57. if os.system('scons --directory=' + project_dir) != 0:
  58. print 'build failed!!'
  59. sys.exit(1)
  60. sys.exit(0)