summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-04-18 07:50:30 +0800
committerGitHub <[email protected]>2020-04-18 07:50:30 +0800
commitd2ff5055387a46908aa48be639b32e796e128a1c (patch)
tree5fdef7f2abbe17bf64544cf4bb6a33b015080d60 /tools
parentcd249bfcb173cb0abce15f5140530961a2733617 (diff)
parentee4cabe69f90cd2bde042d7d8d114e420b09319f (diff)
Merge pull request #3546 from nuclei-community/dev_nuclei_pr
[BSP][Nuclei] Add Nuclei RISC-V Processor support
Diffstat (limited to 'tools')
-rw-r--r--tools/mkdist.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mkdist.py b/tools/mkdist.py
index 7e4b9a8bbe..ec527d87e1 100644
--- a/tools/mkdist.py
+++ b/tools/mkdist.py
@@ -345,6 +345,13 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, rttide = None):
bsp_copy_files(os.path.join(library_path, Env['bsp_lib_type']), os.path.join(library_dir, Env['bsp_lib_type']))
shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig'))
+ # copy nuclei bsp libiary files
+ if os.path.basename(os.path.dirname(BSP_ROOT)) == 'nuclei':
+ print("=> copy nuclei bsp library")
+ library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
+ library_dir = os.path.join(dist_dir, 'libraries')
+ bsp_copy_files(os.path.join(library_path, Env['bsp_lib_type']), os.path.join(library_dir, Env['bsp_lib_type']))
+
# do bsp special dist handle
if 'dist_handle' in Env:
print("=> start dist handle")