2018-10-10 09:26:50 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
2019-06-12 15:01:12 +08:00
|
|
|
if GetDepend('BSP_USING_HYPERFLASH'):
|
2018-10-10 09:26:50 +08:00
|
|
|
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)'
|
|
|
|
else:
|
2019-06-12 15:01:12 +08:00
|
|
|
LINKFLAGS = ''
|
2018-10-10 09:26:50 +08:00
|
|
|
|
|
|
|
group = DefineGroup('xip', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
|
|
|
|
Return('group')
|
|
|
|
|
2019-06-12 15:01:12 +08:00
|
|
|
if GetDepend('BSP_USING_QSPIFLASH'):
|
2018-10-10 09:26:50 +08:00
|
|
|
group = []
|
|
|
|
Return('group')
|