summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2015-01-07 10:20:50 +0800
committerGrissiom <[email protected]>2015-01-07 10:25:44 +0800
commitfcff552626079f87889ef4d03cbc25a909b6c71b (patch)
tree38648b08e16a0383319597b16e76d1a2a22f557f /bsp
parent03a2847f12bb262e5ccd7c64a93da3786d0c8cb4 (diff)
lpc43xx: fix the SConscripts
Diffstat (limited to 'bsp')
-rw-r--r--bsp/lpc43xx/M0/SConscript10
-rw-r--r--bsp/lpc43xx/M4/SConscript10
2 files changed, 10 insertions, 10 deletions
diff --git a/bsp/lpc43xx/M0/SConscript b/bsp/lpc43xx/M0/SConscript
index 285e5c295f..8333973c01 100644
--- a/bsp/lpc43xx/M0/SConscript
+++ b/bsp/lpc43xx/M0/SConscript
@@ -5,13 +5,13 @@ objs = []
for d in os.listdir(os.path.join(cwd, '..')):
if d not in ('M0', 'M4'):
- path = os.path.join(cwd, '..', d, 'SConscript')
- if os.path.isfile(path):
- objs = objs + SConscript(path)
+ path = os.path.join('..', d, 'SConscript')
+ if os.path.isfile(os.path.join(cwd, path)):
+ objs = objs + SConscript(os.path.join(cwd, path))
for d in os.listdir(cwd):
- p = os.path.join(cwd, d, 'SConscript');
- if os.path.isfile(p):
+ p = os.path.join(d, 'SConscript');
+ if os.path.isfile(os.path.join(cwd, p)):
objs = objs + SConscript(p)
Return('objs')
diff --git a/bsp/lpc43xx/M4/SConscript b/bsp/lpc43xx/M4/SConscript
index 285e5c295f..8333973c01 100644
--- a/bsp/lpc43xx/M4/SConscript
+++ b/bsp/lpc43xx/M4/SConscript
@@ -5,13 +5,13 @@ objs = []
for d in os.listdir(os.path.join(cwd, '..')):
if d not in ('M0', 'M4'):
- path = os.path.join(cwd, '..', d, 'SConscript')
- if os.path.isfile(path):
- objs = objs + SConscript(path)
+ path = os.path.join('..', d, 'SConscript')
+ if os.path.isfile(os.path.join(cwd, path)):
+ objs = objs + SConscript(os.path.join(cwd, path))
for d in os.listdir(cwd):
- p = os.path.join(cwd, d, 'SConscript');
- if os.path.isfile(p):
+ p = os.path.join(d, 'SConscript');
+ if os.path.isfile(os.path.join(cwd, p)):
objs = objs + SConscript(p)
Return('objs')