# RT-Thread building script for componentImport('rtconfig')frombuildingimport*cwd=GetCurrentDir()src=Split('''NXP/LPC43xx/Source/Templates/system_LPC43xx.c''')CPPPATH=[cwd+'/NXP/LPC43xx/Include',cwd+'/../CMSIS/Include']CPPDEFINES=[rtconfig.USE_CORE+' USE_SPIFI']# add for startup script ifrtconfig.USE_CORE=='CORE_M4':ifrtconfig.CROSS_TOOL=='gcc':src+=['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s']elifrtconfig.CROSS_TOOL=='keil':src+=['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s']elifrtconfig.CROSS_TOOL=='iar':src+=['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s']else:ifrtconfig.CROSS_TOOL=='gcc':src+=['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s']elifrtconfig.CROSS_TOOL=='keil':src+=['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s']elifrtconfig.CROSS_TOOL=='iar':src+=['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s']group=DefineGroup('CMSIS',src,depend=[''],CPPPATH=CPPPATH,CPPDEFINES=CPPDEFINES)Return('group')