diff options
| author | SummerGift <[email protected]> | 2020-05-06 15:32:53 +0800 |
|---|---|---|
| committer | SummerGift <[email protected]> | 2020-05-06 15:37:11 +0800 |
| commit | 36755af0be6b92f095702afa2fae6e0376a27681 (patch) | |
| tree | 5c1c56434419cf4e78275b45750aa0910ec9e259 /bsp/nuclei/tools | |
| parent | dbfd464a77ff213490d78b67af1146a326d43425 (diff) | |
[update] nuclei dist handle
Diffstat (limited to 'bsp/nuclei/tools')
| -rw-r--r-- | bsp/nuclei/tools/sdk_dist.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bsp/nuclei/tools/sdk_dist.py b/bsp/nuclei/tools/sdk_dist.py new file mode 100644 index 0000000000..f802e92730 --- /dev/null +++ b/bsp/nuclei/tools/sdk_dist.py @@ -0,0 +1,18 @@ +import os +import sys +import shutil +cwd_path = os.getcwd() +sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools')) + +# BSP dist function +def dist_do_building(BSP_ROOT): + from mkdist import bsp_copy_files + import rtconfig + + dist_dir = os.path.join(BSP_ROOT, 'dist', os.path.basename(BSP_ROOT)) + library_dir = os.path.join(dist_dir, 'libraries') + + 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, rtconfig.BSP_LIBRARY_TYPE), os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE)) |
