StackRyan e86d54a400
[fix]mimxrt1170 Qspi flash bootup problems (#6215)
[fix]mimxrt1170 Qspi flash bootup problems by loss of external flash conf and ivt header.
[add]green light instead printf on main.c.
2022-08-03 22:43:50 -04:00

20 lines
623 B
Python

Import('RTT_ROOT')
Import('rtconfig')
from building import *
if GetDepend('BSP_USING_QSPIFLASH'):
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil':
LINKFLAGS = ' --keep=*(.boot_hdr.ivt)'
LINKFLAGS += ' --keep=*(.boot_hdr.boot_data)'
LINKFLAGS += ' --keep=*(.boot_hdr.dcd_data)'
LINKFLAGS += ' --keep=*(.boot_hdr.conf)'
LINKFLAGS += ' --predefine="-DXIP_BOOT_HEADER_ENABLE=1"'
else:
LINKFLAGS = ''
group = DefineGroup('xip', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
Return('group')