summaryrefslogtreecommitdiff
path: root/components/lwp/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'components/lwp/SConscript')
-rw-r--r--components/lwp/SConscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/lwp/SConscript b/components/lwp/SConscript
index c53b3f483c..56279cb998 100644
--- a/components/lwp/SConscript
+++ b/components/lwp/SConscript
@@ -26,11 +26,13 @@ if platform in platform_file.keys(): # support platforms
asm_path = 'arch/' + arch + '/' + cpu + '/*_' + platform_file[platform]
arch_common = 'arch/' + arch + '/' + 'common/*.c'
common = 'arch/common/*.c'
+ common_excluded = []
if not GetDepend('RT_USING_VDSO'):
- vdso_files = ['vdso_data.c', 'vdso.c']
- src += [f for f in Glob(arch_common) if os.path.basename(str(f)) not in vdso_files]
- src += [f for f in Glob(common) if os.path.basename(str(f)) not in vdso_files]
+ common_excluded.append('vdso_kernel.c')
+ src += Glob(arch_common)
+ src += [f for f in Glob(common) if os.path.basename(str(f)) not in common_excluded]
else:
+ CPPPATH += [cwd + '/vdso', cwd + '/vdso/kernel']
src += Glob(arch_common)
src += Glob(common)
if not GetDepend('ARCH_MM_MMU'):