diff options
| author | Bernard Xiong <[email protected]> | 2018-06-10 17:57:34 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-06-10 17:57:34 +0800 |
| commit | bca65f30a90857287dc1371ddbc8d5f165691c7f (patch) | |
| tree | 73f7c113f17883996ddb2009bbb8726b9f6c5f0a /components/lwp/SConscript | |
| parent | 682da9b249c8019c078b277742a6b36deb2af7b2 (diff) | |
[lwP] Add light weight process component.
Diffstat (limited to 'components/lwp/SConscript')
| -rw-r--r-- | components/lwp/SConscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/lwp/SConscript b/components/lwp/SConscript new file mode 100644 index 0000000000..f54d9422e1 --- /dev/null +++ b/components/lwp/SConscript @@ -0,0 +1,20 @@ +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = [] +CPPPATH = [] + +support_arch = {"arm": ["cortex-m3", "cortex-m4", "cortex-m7"]} +platform_file = {'armcc': 'rvds.S', 'gcc': 'gcc.S', 'iar': 'iar.S'} + +if rtconfig.PLATFORM in platform_file.keys(): # support platforms + if rtconfig.ARCH in support_arch.keys() and rtconfig.CPU in support_arch[rtconfig.ARCH]: + # arch/arm/cortex-m7/lwp_gcc.S + asm_path = 'arch/' + rtconfig.ARCH + '/' + rtconfig.CPU + '/*_' + platform_file[rtconfig.PLATFORM] + src = Glob('*.c') + Glob(asm_path) + CPPPATH = [cwd] + +group = DefineGroup('lwP', src, depend = ['RT_USING_LWP'], CPPPATH = CPPPATH) + +Return('group') |
