diff options
| author | supperthomas <[email protected]> | 2020-05-02 09:43:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-02 09:43:50 +0800 |
| commit | 4f87edbd35351ac19141c85ddeb0d27160ebf865 (patch) | |
| tree | 03bf9132b32b4b225f8d5e3c3d3787d15789fb83 /libcpu/aarch64/common/SConscript | |
| parent | 1ea7a3f519a4171d2435f4bbf4c0bcdd4201f28c (diff) | |
| parent | 664bc4e9d848d41f56b02879886f1e02bd6f3d62 (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'libcpu/aarch64/common/SConscript')
| -rw-r--r-- | libcpu/aarch64/common/SConscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libcpu/aarch64/common/SConscript b/libcpu/aarch64/common/SConscript new file mode 100644 index 0000000000..72fb8e26c3 --- /dev/null +++ b/libcpu/aarch64/common/SConscript @@ -0,0 +1,24 @@ +# RT-Thread building script for component + +from building import * + +Import('rtconfig') + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') + Glob('*.S') +CPPPATH = [cwd] + +group = DefineGroup('common', src, depend = [''], CPPPATH = CPPPATH) + +# build for sub-directory +list = os.listdir(cwd) +objs = [] + +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')) +group = group + objs + + +Return('group') |
