Merge pull request #4047 from yangjie11/dev-11
[SConscript] rename group name
This commit is contained in:
commit
96822bfabb
|
@ -9,6 +9,6 @@ src = Glob('src/*.c')
|
||||||
|
|
||||||
path = [cwd + '/inc']
|
path = [cwd + '/inc']
|
||||||
|
|
||||||
group = DefineGroup('StdPeriph_Driver', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd, str(Dir('#'))]
|
CPPPATH = [cwd, str(Dir('#'))]
|
||||||
|
|
||||||
group = DefineGroup('spi', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -12,7 +12,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
libs += ['libsmartconfig_armcm4_iar']
|
libs += ['libsmartconfig_armcm4_iar']
|
||||||
|
|
||||||
group = DefineGroup('smartconfig', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath)
|
group = DefineGroup('Libraries', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ CPPPATH = [cwd]
|
||||||
#remove other no use files
|
#remove other no use files
|
||||||
#SrcRemove(src, '*.c')
|
#SrcRemove(src, '*.c')
|
||||||
|
|
||||||
group = DefineGroup('Board', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
|
@ -8,5 +8,5 @@ CPPPATH = [cwd]
|
||||||
# The set of source files associated with this SConscript file.
|
# The set of source files associated with this SConscript file.
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
group = DefineGroup('platform', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -41,6 +41,6 @@ path = [
|
||||||
|
|
||||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
||||||
|
|
||||||
group = DefineGroup('AT32_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -21,6 +21,6 @@ if rtconfig.PLATFORM == 'cl':
|
||||||
if rtconfig.PLATFORM == 'mingw':
|
if rtconfig.PLATFORM == 'mingw':
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
group = DefineGroup('platform', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -21,6 +21,6 @@ if rtconfig.PLATFORM == 'cl':
|
||||||
if rtconfig.PLATFORM == 'mingw':
|
if rtconfig.PLATFORM == 'mingw':
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
group = DefineGroup('platform', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -25,6 +25,6 @@ CPPPATH = [
|
||||||
cwd + '/DRIVERS/USART',
|
cwd + '/DRIVERS/USART',
|
||||||
]
|
]
|
||||||
|
|
||||||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -43,6 +43,6 @@ path = [cwd + '/include',
|
||||||
cwd + '/common/wdt'
|
cwd + '/common/wdt'
|
||||||
]
|
]
|
||||||
|
|
||||||
group = DefineGroup('libraries', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -26,6 +26,6 @@ if GetDepend('RT_USING_SPI_CONTROL'):
|
||||||
if GetDepend('RT_USING_EMAC'):
|
if GetDepend('RT_USING_EMAC'):
|
||||||
src += ['davinci_emac.c']
|
src += ['davinci_emac.c']
|
||||||
|
|
||||||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -72,6 +72,6 @@ path = [cwd + '/emlib/inc',
|
||||||
|
|
||||||
CPPDEFINES = [rtconfig.EFM32_TYPE]
|
CPPDEFINES = [rtconfig.EFM32_TYPE]
|
||||||
#group = DefineGroup('EFM32_StdPeriph', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES, LINKFLAGS = linker_scripts[rtconfig.EFM32_FAMILY])
|
#group = DefineGroup('EFM32_StdPeriph', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES, LINKFLAGS = linker_scripts[rtconfig.EFM32_FAMILY])
|
||||||
group = DefineGroup('EFM32_StdPeriph', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -3,6 +3,6 @@ from building import *
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
group = DefineGroup('Platform', src, depend = [''])
|
group = DefineGroup('Drivers', src, depend = [''])
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
path = [cwd, cwd + '/..']
|
path = [cwd, cwd + '/..']
|
||||||
|
|
||||||
group = DefineGroup('Platform', src, depend = ['CONFIG_BOARD_IOTCAM', 'CONFIG_CHIP_FH8620'], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = ['CONFIG_BOARD_IOTCAM', 'CONFIG_CHIP_FH8620'], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -8,6 +8,6 @@ src = Glob('*.c')
|
||||||
|
|
||||||
path = [cwd, cwd + '/..']
|
path = [cwd, cwd + '/..']
|
||||||
|
|
||||||
group = DefineGroup('Platform', src, depend = ['CONFIG_PLAT_V2'], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = ['CONFIG_PLAT_V2'], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if GetDepend('RT_USING_LWIP'):
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Board', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -21,7 +21,7 @@ elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
|
|
||||||
CPPDEFINES = ['CPU_MK64FN1M0VLL12']
|
CPPDEFINES = ['CPU_MK64FN1M0VLL12']
|
||||||
|
|
||||||
group = DefineGroup('Device', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
||||||
#CPPDEFINES = CPPDEFINES)
|
#CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -28,6 +28,6 @@ if GetDepend(['RT_USING_BSP_USB']):
|
||||||
|
|
||||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F30X_HD']
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F30X_HD']
|
||||||
|
|
||||||
group = DefineGroup('GD32_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -28,6 +28,6 @@ if GetDepend(['RT_USING_BSP_USB']):
|
||||||
|
|
||||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F4XX']
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F4XX']
|
||||||
|
|
||||||
group = DefineGroup('GD32_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -22,6 +22,6 @@ path = [
|
||||||
|
|
||||||
CPPDEFINES = ['GD32E230']
|
CPPDEFINES = ['GD32E230']
|
||||||
|
|
||||||
group = DefineGroup('GD32_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -5,6 +5,6 @@ src = Glob('*.c')
|
||||||
src += Glob('*.s')
|
src += Glob('*.s')
|
||||||
path = [cwd, cwd + '../../../include', cwd + '/../libraries/inc', cwd + '/../drivers']
|
path = [cwd, cwd + '../../../include', cwd + '/../libraries/inc', cwd + '/../drivers']
|
||||||
|
|
||||||
group = DefineGroup('armv6', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -19,6 +19,6 @@ path += [cwd + '/../platform']
|
||||||
|
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
|
|
||||||
group = DefineGroup('drivers', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -7,7 +7,7 @@ path = [cwd + '/inc']
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
libinspath = libcwd + '/libraries/lib'
|
libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
group = DefineGroup('gd', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -39,6 +39,6 @@ src += ['wdog/gd_wdog.c']
|
||||||
|
|
||||||
path = [cwd, cwd + '/../inc']
|
path = [cwd, cwd + '/../inc']
|
||||||
|
|
||||||
group = DefineGroup('gd', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
|
@ -9,7 +9,7 @@ libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
CPPDEFINES = ['-DDEBUG']
|
CPPDEFINES = ['-DDEBUG']
|
||||||
|
|
||||||
group = DefineGroup('gh', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
path = [cwd + '/../inc']
|
path = [cwd + '/../inc']
|
||||||
|
|
||||||
group = DefineGroup('gh', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -7,7 +7,7 @@ path = [cwd + '/inc']
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
libinspath = libcwd + '/libraries/lib'
|
libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
group = DefineGroup('gd', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -40,6 +40,6 @@ src += ['wdog/gd_wdog.c']
|
||||||
|
|
||||||
path = [cwd, cwd + '/../inc', cwd + '/..']
|
path = [cwd, cwd + '/../inc', cwd + '/..']
|
||||||
|
|
||||||
group = DefineGroup('gd', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
|
@ -7,7 +7,7 @@ path = [cwd + '/inc']
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
libinspath = libcwd + '/libraries/lib'
|
libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
group = DefineGroup('gh', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
path = [cwd + '/..', cwd + '/../inc', cwd + '/../../inc']
|
path = [cwd + '/..', cwd + '/../inc', cwd + '/../../inc']
|
||||||
|
|
||||||
group = DefineGroup('gh', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -7,7 +7,7 @@ path = [cwd + '/inc']
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
libinspath = libcwd + '/libraries/lib'
|
libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
group = DefineGroup('gd', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -40,6 +40,6 @@ src += ['wdog/gd_wdog.c']
|
||||||
|
|
||||||
path = [cwd, cwd + '/../inc', cwd + '/..']
|
path = [cwd, cwd + '/../inc', cwd + '/..']
|
||||||
|
|
||||||
group = DefineGroup('gd', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
|
@ -7,7 +7,7 @@ path = [cwd + '/inc']
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
libinspath = libcwd + '/libraries/lib'
|
libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
group = DefineGroup('gh', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
path = [cwd + '/..', cwd + '/../inc', cwd + '/../../inc']
|
path = [cwd + '/..', cwd + '/../inc', cwd + '/../../inc']
|
||||||
|
|
||||||
group = DefineGroup('gh', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -8,6 +8,6 @@ path = [cwd]
|
||||||
libcwd = str(Dir('#'))
|
libcwd = str(Dir('#'))
|
||||||
libinspath = libcwd + '/libraries/lib'
|
libinspath = libcwd + '/libraries/lib'
|
||||||
|
|
||||||
group = DefineGroup('gnu_c', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ elif GetDepend('BOARD_GK7102S_HZD_JXH42'):
|
||||||
elif GetDepend('BOARD_GK7102C_JH'):
|
elif GetDepend('BOARD_GK7102C_JH'):
|
||||||
CPPDEFINES += ['-DGK7102C_JH']
|
CPPDEFINES += ['-DGK7102C_JH']
|
||||||
|
|
||||||
group = DefineGroup('platform', src, depend = [''], CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Drivers', src, depend = [''], CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -12,6 +12,6 @@ elif rtconfig.PLATFORM == 'gcc':
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
group = DefineGroup('AM335x', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -11,6 +11,6 @@ if GetDepend('BSP_USING_PHY') and GetDepend('PHY_USING_KSZ8081'):
|
||||||
|
|
||||||
path = [cwd]
|
path = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Peripherals', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('camera', src, depend = ['BSP_USING_CAMERA'], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = ['BSP_USING_CAMERA'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -22,6 +22,6 @@ path = [cwd + '/CMSIS/Include',
|
||||||
cwd + '/nrf51822/Include']
|
cwd + '/nrf51822/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'NRF51']
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'NRF51']
|
||||||
group = DefineGroup('Startup Code', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -20,6 +20,6 @@ elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
|
|
||||||
path = [cwd + '/Nuvoton/M480/Include',]
|
path = [cwd + '/Nuvoton/M480/Include',]
|
||||||
|
|
||||||
group = DefineGroup('m480_device', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -20,9 +20,9 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
|
||||||
libs += ['libstddriver_iar']
|
libs += ['libstddriver_iar']
|
||||||
|
|
||||||
if not libs:
|
if not libs:
|
||||||
group = DefineGroup('m480_stddriver', src, depend = [''], CPPPATH = cpppath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath)
|
||||||
else:
|
else:
|
||||||
src = []
|
src = []
|
||||||
group = DefineGroup('m480_stddriver', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -30,6 +30,6 @@ elif GetDepend('BOARD_USING_HSOTG') and ( GetDepend('BSP_USING_USBD') or GetDepe
|
||||||
print '[Hint] You already select BOARD_USING_HSOTG. Please de-select BSP_USING_USBD and BSP_USING_USBH options.'
|
print '[Hint] You already select BOARD_USING_HSOTG. Please de-select BSP_USING_USBD and BSP_USING_USBH options.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
group = DefineGroup('m480_rttport', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -15,6 +15,6 @@ NuPinConfig/nutool_pincfg.c
|
||||||
src += Glob('*.c') + Glob('*.cpp')
|
src += Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig']
|
CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig']
|
||||||
|
|
||||||
group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -15,6 +15,6 @@ NuPinConfig/nutool_pincfg.c
|
||||||
src += Glob('*.c') + Glob('*.cpp')
|
src += Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig']
|
CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig']
|
||||||
|
|
||||||
group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -11,6 +11,6 @@ path = [cwd + '/inc'
|
||||||
|
|
||||||
CPPDEFINES = ['NV32', 'KEIL']
|
CPPDEFINES = ['NV32', 'KEIL']
|
||||||
|
|
||||||
group = DefineGroup('Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.S')
|
src = Glob('*.c') + Glob('*.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('drv_audio', src, depend = ['BSP_DRV_AUDIO'], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = ['BSP_DRV_AUDIO'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -12,6 +12,6 @@ elif rtconfig.PLATFORM == 'gcc':
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
group = DefineGroup('AM335x', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -14,7 +14,7 @@ if not GetDepend('BSP_USING_WDT'):
|
||||||
if not GetDepend('BSP_USING_BULETOOTH'):
|
if not GetDepend('BSP_USING_BULETOOTH'):
|
||||||
SrcRemove(src, ['drv_bluetooth.c'])
|
SrcRemove(src, ['drv_bluetooth.c'])
|
||||||
|
|
||||||
group = DefineGroup('driver', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
# build for sub-directory
|
# build for sub-directory
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
|
|
|
@ -9,6 +9,6 @@ CPPPATH = [cwd, str(Dir('#'))]
|
||||||
#remove other no use files
|
#remove other no use files
|
||||||
#SrcRemove(src, '*.c')
|
#SrcRemove(src, '*.c')
|
||||||
|
|
||||||
group = DefineGroup('Application', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
|
@ -15,6 +15,6 @@ if rtconfig.DEVICE_SERIES == 'SAMD20':
|
||||||
elif rtconfig.DEVICE_SERIES == 'SAMD21':
|
elif rtconfig.DEVICE_SERIES == 'SAMD21':
|
||||||
path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1']
|
path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1']
|
||||||
|
|
||||||
group = DefineGroup('Board', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -81,6 +81,6 @@ path = [cwd + '/CMSIS/Device/ST/STM32F0xx/Include',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -87,6 +87,6 @@ path = [cwd + '/CMSIS/Device/ST/STM32F1xx/Include',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -82,6 +82,6 @@ path = [cwd + '/CMSIS/Device/ST/STM32F2xx/Include',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -113,6 +113,6 @@ path = [cwd + '/STM32F4xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -105,7 +105,7 @@ path = [cwd + '/STM32F7xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,6 @@ path = [cwd + '/STM32G0xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -110,6 +110,6 @@ path = [cwd + '/STM32G4xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -109,7 +109,7 @@ path = [cwd + '/STM32H7xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,6 @@ path = [cwd + '/STM32L0xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -77,6 +77,6 @@ path = [cwd + '/CMSIS/Device/ST/STM32L1xx/Include',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -117,6 +117,6 @@ path = [cwd + '/STM32L4xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -125,6 +125,6 @@ path = [cwd + '/STM32MP1xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -84,6 +84,6 @@ path = [cwd + '/STM32WBxx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Include']
|
cwd + '/CMSIS/Include']
|
||||||
|
|
||||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd, str(Dir('#'))]
|
CPPPATH = [cwd, str(Dir('#'))]
|
||||||
|
|
||||||
group = DefineGroup('touch', src, depend = ['BSP_USING_TOUCH'], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = ['BSP_USING_TOUCH'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -4,6 +4,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd, str(Dir('#'))]
|
CPPPATH = [cwd, str(Dir('#'))]
|
||||||
|
|
||||||
group = DefineGroup('touch', src, depend = ['BSP_USING_TOUCH'], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = ['BSP_USING_TOUCH'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -15,6 +15,6 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
LOCAL_CCFLAGS += ' --c99'
|
LOCAL_CCFLAGS += ' --c99'
|
||||||
|
|
||||||
group = DefineGroup('fal', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -64,6 +64,6 @@ if GetDepend('RT_USING_LWIP') == True:
|
||||||
|
|
||||||
|
|
||||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
||||||
group = DefineGroup('STM32_StdPeriph', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -68,6 +68,6 @@ path = [cwd + '/tm4c123_driverlib',
|
||||||
cwd + '/tm4c123_driverlib/driverlib',
|
cwd + '/tm4c123_driverlib/driverlib',
|
||||||
cwd + '/tm4c123_driverlib/driverlib/inc']
|
cwd + '/tm4c123_driverlib/driverlib/inc']
|
||||||
|
|
||||||
group = DefineGroup('TM4C123_HAL', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -7,7 +7,7 @@ src = ['sensor.c']
|
||||||
CPPPATH = [cwd, cwd + '/../include']
|
CPPPATH = [cwd, cwd + '/../include']
|
||||||
|
|
||||||
if GetDepend('RT_USING_SENSOR_CMD'):
|
if GetDepend('RT_USING_SENSOR_CMD'):
|
||||||
src += ['sensor_cmd.c'];
|
src += ['sensor_cmd.c']
|
||||||
|
|
||||||
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,6 @@ cwd = GetCurrentDir()
|
||||||
src = ['touch.c']
|
src = ['touch.c']
|
||||||
CPPPATH = [cwd, cwd + '/../include']
|
CPPPATH = [cwd, cwd + '/../include']
|
||||||
|
|
||||||
group = DefineGroup('Touch', src, depend = ['RT_USING_TOUCH', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_TOUCH', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -6,6 +6,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('aio', src, depend = ['RT_USING_POSIX', 'RT_USING_POSIX_AIO'], CPPPATH = CPPPATH)
|
group = DefineGroup('libc', src, depend = ['RT_USING_POSIX', 'RT_USING_POSIX_AIO'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -20,7 +20,7 @@ if rtconfig.PLATFORM == 'iar':
|
||||||
if LooseVersion(IARVersion()) < LooseVersion("8.20.1"):
|
if LooseVersion(IARVersion()) < LooseVersion("8.20.1"):
|
||||||
CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT']
|
CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT']
|
||||||
|
|
||||||
group = DefineGroup('dlib', src, depend = ['RT_USING_LIBC'],
|
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
|
||||||
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -15,7 +15,7 @@ CPPDEFINES = ['RT_USING_NEWLIB']
|
||||||
LIBS = ['c', 'm']
|
LIBS = ['c', 'm']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
group = DefineGroup('newlib', src, depend = ['RT_USING_LIBC'],
|
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
|
||||||
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)
|
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -16,7 +16,7 @@ try:
|
||||||
except :
|
except :
|
||||||
pass
|
pass
|
||||||
|
|
||||||
group = DefineGroup('pthreads', src,
|
group = DefineGroup('libc', src,
|
||||||
depend = ['RT_USING_PTHREADS', 'RT_USING_LIBC'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
depend = ['RT_USING_PTHREADS', 'RT_USING_LIBC'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -6,7 +6,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('pthreads', src,
|
group = DefineGroup('libc', src,
|
||||||
depend = ['RT_USING_PTHREADS'], CPPPATH = CPPPATH)
|
depend = ['RT_USING_PTHREADS'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -82,6 +82,6 @@ if GetDepend(['RT_LWIP_PPP']):
|
||||||
if GetDepend(['RT_LWIP_USING_PING']):
|
if GetDepend(['RT_LWIP_USING_PING']):
|
||||||
src += Glob('src/apps/ping/ping.c')
|
src += Glob('src/apps/ping/ping.c')
|
||||||
|
|
||||||
group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP', 'RT_USING_LWIP141'], CPPPATH = path)
|
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'RT_USING_LWIP141'], CPPPATH = path)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -5,6 +5,6 @@ src = Glob('*.c')
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_NAT'], CPPPATH = CPPPATH)
|
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_NAT'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -8,6 +8,6 @@ src = Glob('src/*.c')
|
||||||
|
|
||||||
CPPPATH = [cwd + '/include']
|
CPPPATH = [cwd + '/include']
|
||||||
|
|
||||||
group = DefineGroup('netdev', src, depend = ['RT_USING_NETDEV'], CPPPATH = CPPPATH)
|
group = DefineGroup('SAL', src, depend = ['RT_USING_NETDEV'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -3,6 +3,6 @@ from building import *
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
group = DefineGroup('utest', src, depend = ['RT_USING_UTEST'], CPPPATH = CPPPATH)
|
group = DefineGroup('UTest', src, depend = ['RT_USING_UTEST'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -34,7 +34,7 @@ memp_simple.c
|
||||||
tc_sample.c
|
tc_sample.c
|
||||||
""")
|
""")
|
||||||
|
|
||||||
group = DefineGroup('examples', src,
|
group = DefineGroup('Examples', src,
|
||||||
depend = ['RT_USING_TC'],
|
depend = ['RT_USING_TC'],
|
||||||
CPPPATH=[GetCurrentDir()])
|
CPPPATH=[GetCurrentDir()])
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
group = DefineGroup('libc_test', src, depend = ['RT_USING_NEWLIB', 'RT_USING_PTHREADS'])
|
group = DefineGroup('UTest', src, depend = ['RT_USING_NEWLIB', 'RT_USING_PTHREADS'])
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('common', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
# build for sub-directory
|
# build for sub-directory
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
|
|
|
@ -8,6 +8,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('common', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -8,6 +8,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('common', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -5,6 +5,6 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -10,6 +10,6 @@ CPPPATH = [cwd]
|
||||||
|
|
||||||
src += Glob('*.S')
|
src += Glob('*.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -20,6 +20,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -18,6 +18,6 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue