SConscript 527 B

1234567891011121314151617181920212223242526
  1. from building import *
  2. Import('rtconfig')
  3. # handle softfp or hard
  4. flags = rtconfig.CFLAGS.split(' ')
  5. softfp = 'softfp'
  6. for item in flags:
  7. if item.find('-mfloat-abi='):
  8. if item.find('hard'):
  9. softfp = 'hard'
  10. else:
  11. softfp = 'softfp'
  12. cwd = GetCurrentDir()
  13. src = Split('''
  14. startup_LPC54608.c
  15. ''')
  16. if softfp == 'softfp':
  17. LIBS = ['fsl_power_lib_softabi']
  18. else:
  19. LIBS = ['fsl_power_lib']
  20. group = DefineGroup('CMSIS', src, depend = [''], LIBS=LIBS, LIBPATH=[cwd])
  21. Return('group')