[bsp] reduce SConscript absolute path usage

This commit is contained in:
CYFS
2026-06-25 12:41:58 +08:00
committed by Rbb666
parent 3e9caca55b
commit bdae0ef2a3
16 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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');
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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)