SConscript 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. src = []
  6. group = []
  7. CPPPATH = []
  8. DIR = '/TARGET_APP_KIT_PSE84_EVAL_EPC2/'
  9. if rtconfig.PLATFORM in ['iccarm']:
  10. print("\nThe current project does not support IAR build\n")
  11. Return('group')
  12. elif rtconfig.PLATFORM in ['gcc', 'armclang']:
  13. src += ['TARGET_APP_KIT_PSE84_EVAL_EPC2/cybsp.c']
  14. src += ['TARGET_APP_KIT_PSE84_EVAL_EPC2/system_edge.c']
  15. src += Glob('TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/*.c')
  16. if GetDepend(['KIT_PROCE84_EVK_M55']):
  17. src += ['TARGET_APP_KIT_PSE84_EVAL_EPC2/COMPONENT_CM55/COMPONENT_NON_SECURE_DEVICE/ns_system_pse84.c']
  18. src += ['TARGET_APP_KIT_PSE84_EVAL_EPC2/COMPONENT_CM55/COMPONENT_NON_SECURE_DEVICE/ns_start_pse84.c']
  19. if GetDepend(['KIT_PROCE84_EVK_M33']):
  20. src += ['TARGET_APP_KIT_PSE84_EVAL_EPC2/COMPONENT_CM33/COMPONENT_NON_SECURE_DEVICE/ns_system_pse84.c']
  21. src += ['TARGET_APP_KIT_PSE84_EVAL_EPC2/COMPONENT_CM33/COMPONENT_NON_SECURE_DEVICE/ns_start_pse84.c']
  22. CPPPATH = [
  23. cwd + DIR,
  24. cwd + DIR + 'config/GeneratedSource',
  25. cwd + DIR + 'config',
  26. cwd + DIR + 'bluetooth'
  27. ]
  28. group = DefineGroup('libs', src, depend=[''], CPPPATH=CPPPATH, LOCAL_CPPPATH=CPPPATH)
  29. Return('group')