summaryrefslogtreecommitdiff
path: root/components/mprotect/SConscript
diff options
context:
space:
mode:
authortangzz98 <[email protected]>2023-10-30 08:24:55 -0400
committerGitHub <[email protected]>2023-10-30 08:24:55 -0400
commitacc66c547999ce444b79efccd67625a1af347d5d (patch)
tree316bb953009ba0b0e9a77422d767fd7d82d50466 /components/mprotect/SConscript
parent1554888c0b004bac7098e2a92a32603dd26b452c (diff)
实现MPU抽象层 (#8080)
- 为RT-Thread设计MPU抽象层,支持ARMV7-M,ARMV8-M架构,让用户使用MPU检测栈溢出等内存问题,实现线程内存隔离 - 在components/mp目录下提供通用的API,libcpu目录下提供各处理器架构的具体实现 - 在STM32U575 NUCLEO, STM32H75 NUCLEO开发板测试通过
Diffstat (limited to 'components/mprotect/SConscript')
-rw-r--r--components/mprotect/SConscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/mprotect/SConscript b/components/mprotect/SConscript
new file mode 100644
index 0000000000..89d224a27f
--- /dev/null
+++ b/components/mprotect/SConscript
@@ -0,0 +1,11 @@
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+if GetDepend("USE_MEM_PROTECTION_EXAMPLES"):
+ src += Glob('examples/*.c')
+CPPPATH = [cwd]
+
+group = DefineGroup('mprotect', src, depend = ['RT_USING_MEM_PROTECTION'], CPPPATH = CPPPATH)
+
+Return('group')