814b1abb08
* Update Kconfig 增加RT1170双路网络选项 * Update SConscript 增加RTL8211F驱动选项支持 * Update SConstruct 去掉外设目录 * Add files via upload 增加PHY芯片RTL8211F驱动 * Update drv_rtl8211f.c * format code Co-authored-by: Meco Man <920369182@qq.com>
26 lines
747 B
Python
26 lines
747 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
if GetDepend('BSP_USING_4MFLASH'):
|
|
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)'
|
|
LINKFLAGS += '--entry=Reset_Handler '
|
|
LINKFLAGS += '--predefine="-DXIP_BOOT_HEADER_ENABLE=1"'
|
|
else:
|
|
LINKFLAGS = ''
|
|
|
|
group = DefineGroup('xip', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
|
|
Return('group')
|
|
|
|
if GetDepend('BSP_USING_QSPIFLASH'):
|
|
group = []
|
|
Return('group')
|