File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 8484 CFLAGS += ' -O2'
8585
8686 POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \n fromelf -z $TARGET'
87+
88+
89+ def dist_handle (BSP_ROOT , dist_dir ):
90+ import sys
91+ cwd_path = os .getcwd ()
92+ sys .path .append (os .path .join (os .path .dirname (BSP_ROOT ), 'tools' ))
93+ from sdk_dist import dist_do_building
94+ dist_do_building (BSP_ROOT , dist_dir )
Original file line number Diff line number Diff line change 8282 CFLAGS += ' -O2'
8383
8484 POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \n fromelf -z $TARGET'
85+
86+
87+ def dist_handle (BSP_ROOT , dist_dir ):
88+ import sys
89+ cwd_path = os .getcwd ()
90+ sys .path .append (os .path .join (os .path .dirname (BSP_ROOT ), 'tools' ))
91+ from sdk_dist import dist_do_building
92+ dist_do_building (BSP_ROOT , dist_dir )
Original file line number Diff line number Diff line change 1+ import os
2+ import sys
3+ import shutil
4+ cwd_path = os .getcwd ()
5+ sys .path .append (os .path .join (os .path .dirname (cwd_path ), 'rt-thread' , 'tools' ))
6+
7+ # BSP dist function
8+ def dist_do_building (BSP_ROOT , dist_dir ):
9+ from mkdist import bsp_copy_files
10+ import rtconfig
11+
12+ library_dir = os .path .join (dist_dir , 'libraries' )
13+
14+ print ("=> copy nrf52 bsp libraries" )
15+ library_path = os .path .join (os .path .dirname (BSP_ROOT ), 'libraries' )
16+
17+ bsp_copy_files (library_path , library_dir )
You can’t perform that action at this time.
0 commit comments