61aff201a6
1.mdk keil project is supported. 2.gcc is supported. 3.boot image can be configured to be selected or not,if you use mdk keil,please select xip boot image 4. bin and elf files can be load by NXP-MCUBootUtility.exe.
20 lines
620 B
Python
20 lines
620 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
cwd = GetCurrentDir()
|
|
SOURCES = []
|
|
CPPPATH = [cwd]
|
|
if GetDepend('BSP_USING_BOOT_IMAGE'):
|
|
SOURCES = Glob('*.c')
|
|
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:
|
|
SOURCES = Glob('*.c')
|
|
LINKFLAGS = ''
|
|
else:
|
|
LINKFLAGS = ''
|
|
group = DefineGroup('xip', src= SOURCES, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
|
|
Return('group') |