mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 20:48:41 +08:00
[bsp] reduce SConscript absolute path usage
This commit is contained in:
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -7,7 +7,7 @@ from building import *
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
|
||||
objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript'))
|
||||
objs = objs + SConscript(os.path.join(rtconfig.CHIP_NAME, 'SConscript'))
|
||||
ASFLAGS = ' -I' + cwd
|
||||
|
||||
Return('objs')
|
||||
@@ -9,9 +9,9 @@ src = ['drv_common.c']
|
||||
path = [cwd]
|
||||
|
||||
if GetDepend(['RT_USING_NANO']):
|
||||
group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
|
||||
group = group + SConscript(os.path.join('nano', 'SConscript'))
|
||||
else:
|
||||
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
|
||||
group = group + SConscript(os.path.join('drivers', 'SConscript'))
|
||||
|
||||
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ for d in os.listdir(os.path.join(cwd, '..')):
|
||||
if d not in ('M0', 'M4'):
|
||||
path = os.path.join('..', d, 'SConscript')
|
||||
if os.path.isfile(os.path.join(cwd, path)):
|
||||
objs = objs + SConscript(os.path.join(cwd, path))
|
||||
objs = objs + SConscript(path)
|
||||
|
||||
for d in os.listdir(cwd):
|
||||
p = os.path.join(d, 'SConscript');
|
||||
|
||||
@@ -7,7 +7,7 @@ for d in os.listdir(os.path.join(cwd, '..')):
|
||||
if d not in ('M0', 'M4'):
|
||||
path = os.path.join('..', d, 'SConscript')
|
||||
if os.path.isfile(os.path.join(cwd, path)):
|
||||
objs = objs + SConscript(os.path.join(cwd, path))
|
||||
objs = objs + SConscript(path)
|
||||
|
||||
for d in os.listdir(cwd):
|
||||
p = os.path.join(d, 'SConscript');
|
||||
|
||||
@@ -9,9 +9,9 @@ src = ['drv_common.c']
|
||||
path = [cwd]
|
||||
|
||||
if GetDepend(['RT_USING_NANO']):
|
||||
group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
|
||||
group = group + SConscript(os.path.join('nano', 'SConscript'))
|
||||
else:
|
||||
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
|
||||
group = group + SConscript(os.path.join('drivers', 'SConscript'))
|
||||
|
||||
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ if not GetDepend('PKG_USING_CMSIS_CORE'):
|
||||
path += [os.path.join(cwd, 'CMSIS', 'Include')]
|
||||
|
||||
if GetDepend(['RT_USING_NANO']):
|
||||
group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
|
||||
group = group + SConscript(os.path.join('nano', 'SConscript'))
|
||||
else:
|
||||
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
|
||||
group = group + SConscript(os.path.join('drivers', 'SConscript'))
|
||||
|
||||
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user