diff options
| author | Shell <[email protected]> | 2024-09-12 11:14:12 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-09-13 17:35:00 -0400 |
| commit | 57d002b25e26a5df950b087f0ea2dc7b6feeb7e3 (patch) | |
| tree | a507e64c368e22d378821b3a0c39993d08b79756 /libcpu/risc-v/SConscript | |
| parent | 2d026a316aa39b13897959d3fc851e39aaa0d054 (diff) | |
feat: remove redundant codes under virt64, c906
Changes:
- create new folder name `common64` and save all common codes of rv64
inside
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'libcpu/risc-v/SConscript')
| -rw-r--r-- | libcpu/risc-v/SConscript | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libcpu/risc-v/SConscript b/libcpu/risc-v/SConscript index 41549d03ee..0f3ce9f233 100644 --- a/libcpu/risc-v/SConscript +++ b/libcpu/risc-v/SConscript @@ -5,17 +5,16 @@ from building import * Import('rtconfig') +common64_arch = ['virt64', 'c906'] cwd = GetCurrentDir() group = [] list = os.listdir(cwd) # add common code files -if rtconfig.CPU == "virt64" : - group = group -elif rtconfig.CPU == "c906" : - group = group +if rtconfig.CPU in common64_arch : + group += SConscript(os.path.join('common64', 'SConscript')) else : - group = group + SConscript(os.path.join('common', 'SConscript')) + group += SConscript(os.path.join('common', 'SConscript')) # cpu porting code files if rtconfig.CPU == "c906": |
