summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorluhuadong <[email protected]>2020-04-18 16:26:36 +0800
committerluhuadong <[email protected]>2020-04-18 16:26:36 +0800
commit964cbe612adbe749b4cd3c3ef48eafe72a571254 (patch)
tree986db99ce7838075ed578de7a68893b3bb3dd28a /tools
parent3b2fa472096d41287ee8cb542e8c1d119a5a8b76 (diff)
parentd2ff5055387a46908aa48be639b32e796e128a1c (diff)
Resolve conflicts
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 e71d767446..2f12ad8f12 100644
--- a/tools/mkdist.py
+++ b/tools/mkdist.py
@@ -363,6 +363,13 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, rttide = None):
bsp_copy_files(os.path.join(library_path, 'AT32_Std_Driver'), os.path.join(library_dir, 'AT32_Std_Driver'))
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")