summaryrefslogtreecommitdiff
path: root/components/mm/SConscript
diff options
context:
space:
mode:
authorShell <[email protected]>2023-01-09 10:08:55 +0800
committerGitHub <[email protected]>2023-01-08 21:08:55 -0500
commit7450ef6c4d71f992444d27f4a26c16f813ed8e55 (patch)
tree1d9b450d85c2c048cae2410e97ef9edfc2868323 /components/mm/SConscript
parent7f9ccd3c809afa6b54f0d453f2edcc8367a6aeb8 (diff)
[rt-smart] kernel virtual memory management layer (#6809)
synchronize virtual memory system works. adding kernel virtual memory management layer for page-based MMU enabled architecture porting libcpu MMU codes porting lwp memory related codes
Diffstat (limited to 'components/mm/SConscript')
-rw-r--r--components/mm/SConscript21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/mm/SConscript b/components/mm/SConscript
new file mode 100644
index 0000000000..d6f78ee06f
--- /dev/null
+++ b/components/mm/SConscript
@@ -0,0 +1,21 @@
+import os
+from building import *
+
+objs = []
+
+if GetDepend('ARCH_MM_MMU'):
+ cwd = GetCurrentDir()
+ src = Glob('*.c') + Glob('*_gcc.S')
+ CPPPATH = [cwd]
+
+ group = DefineGroup('mm', src, depend = [''], CPPPATH = CPPPATH)
+
+ objs = [group]
+ list = os.listdir(cwd)
+
+ for d in list:
+ path = os.path.join(cwd, d)
+ if os.path.isfile(os.path.join(path, 'SConscript')):
+ objs = objs + SConscript(os.path.join(d, 'SConscript'))
+
+Return('objs')