summaryrefslogtreecommitdiff
path: root/tools/mkdist.py
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-05-30 18:01:24 +0800
committerBernard Xiong <[email protected]>2018-05-30 18:01:24 +0800
commitfd0ae67289228cec831cc83fe3c7b4ce0c047197 (patch)
tree0888b28e98ef760b681eda93e70ddb83a05b51fd /tools/mkdist.py
parentfe691c2ab3c97f491fae2f8d24a8cd019bb21469 (diff)
[Tools] Add target=vsc in building script.
Diffstat (limited to 'tools/mkdist.py')
-rw-r--r--tools/mkdist.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/mkdist.py b/tools/mkdist.py
index 4a9f37035a..62dadc909a 100644
--- a/tools/mkdist.py
+++ b/tools/mkdist.py
@@ -66,14 +66,13 @@ def walk_kconfig(RTT_ROOT, source_list):
pathfile = os.path.join(parent, 'KConfig')
source_list.append(pathfile)
-
def MakeCopy(program, BSP_ROOT, RTT_ROOT, Env):
global source_list
target_path = os.path.join(BSP_ROOT, 'rt-thread')
if target_path.startswith(RTT_ROOT):
- print('please use scons --dist to make a distribution')
+ print('please use scons --copy to copy rt-thread to local bsp')
return
for item in program:
@@ -140,7 +139,7 @@ def MakeCopyHeader(program, BSP_ROOT, RTT_ROOT, Env):
target_path = os.path.join(BSP_ROOT, 'rt-thread')
if target_path.startswith(RTT_ROOT):
- print('please use scons --dist to make a distribution')
+ print('please use scons --copy-header to copy header files only')
return
for item in program:
@@ -186,7 +185,7 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env):
# copy BSP files
do_copy_folder(os.path.join(BSP_ROOT), dist_dir,
- ignore_patterns('build', 'dist', '*.pyc', '*.old', '*.map', 'rtthread.bin', '.sconsign.dblite', '*.elf', '*.axf'))
+ ignore_patterns('build', 'dist', '*.pyc', '*.old', '*.map', 'rtthread.bin', '.sconsign.dblite', '*.elf', '*.axf', 'cconfig.h'))
global source_list