summaryrefslogtreecommitdiff
path: root/components/lwp/SConscript
diff options
context:
space:
mode:
authorrcitachi <[email protected]>2024-07-15 17:58:29 +0800
committerGitHub <[email protected]>2024-07-15 17:58:29 +0800
commit14fb55933b173811467159df3e80e314b2e4415c (patch)
tree70e9adf971168d7d16b5bf27806abb707ab3a0c6 /components/lwp/SConscript
parent96ba787e252c38abe08f039c052a4be378dfa42c (diff)
[lwp][vdso] Add VDSO functionality under the aarch64 architecture (#9176)
Add VDSO functionality under the aarch64 architecture
Diffstat (limited to 'components/lwp/SConscript')
-rw-r--r--components/lwp/SConscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/lwp/SConscript b/components/lwp/SConscript
index 5f4a618d48..be7b4f7b64 100644
--- a/components/lwp/SConscript
+++ b/components/lwp/SConscript
@@ -26,11 +26,16 @@ if platform in platform_file.keys(): # support platforms
if arch in support_arch.keys() and cpu in support_arch[arch]:
asm_path = 'arch/' + arch + '/' + cpu + '/*_' + platform_file[platform]
arch_common = 'arch/' + arch + '/' + 'common/*.c'
+ 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]
+ else:
+ src += Glob(arch_common)
if not GetDepend('ARCH_MM_MMU'):
excluded_files = ['ioremap.c', 'lwp_futex.c', 'lwp_mm_area.c', 'lwp_pmutex.c', 'lwp_shm.c', 'lwp_user_mm.c']
- src += [f for f in Glob('*.c') if os.path.basename(str(f)) not in excluded_files] + Glob(asm_path) + Glob(arch_common)
+ src += [f for f in Glob('*.c') if os.path.basename(str(f)) not in excluded_files] + Glob(asm_path)
else:
- src += Glob('*.c') + Glob(asm_path) + Glob(arch_common)
+ src += Glob('*.c') + Glob(asm_path)
src += Glob('arch/' + arch + '/' + cpu + '/*.c')
CPPPATH = [cwd]
CPPPATH += [cwd + '/arch/' + arch + '/' + cpu]
@@ -43,4 +48,5 @@ CPPPATH += ['./terminal/']
group = DefineGroup('lwP', src, depend = ['RT_USING_SMART'], CPPPATH = CPPPATH)
+group = group + SConscript(os.path.join('vdso', 'SConscript'))
Return('group')