24 lines
640 B
Python
24 lines
640 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
if GetDepend('BSP_USING_HYPERFLASH'):
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c')
|
|
CPPPATH = [cwd]
|
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
|
LINKFLAGS = '--keep=*(.boot_hdr.ivt)'
|
|
LINKFLAGS += '--keep=*(.boot_hdr.boot_data)'
|
|
LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)'
|
|
LINKFLAGS += '--keep=*(.boot_hdr.conf)'
|
|
else:
|
|
LINKFLAGS = ''
|
|
|
|
group = DefineGroup('xip', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
|
|
Return('group')
|
|
|
|
if GetDepend('BSP_USING_QSPIFLASH'):
|
|
group = []
|
|
Return('group')
|