Skip to content

Commit ce86058

Browse files
authored
Merge pull request #24 from RT-Thread/master
pr
2 parents 034046c + ea22af5 commit ce86058

File tree

14 files changed

+847
-603
lines changed

14 files changed

+847
-603
lines changed

bsp/maxim/MAX32660_EVSYS/rtconfig.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,11 @@
133133

134134
EXEC_PATH = EXEC_PATH + '/arm/bin/'
135135
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
136+
137+
138+
def dist_handle(BSP_ROOT, dist_dir):
139+
import sys
140+
cwd_path = os.getcwd()
141+
sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools'))
142+
from sdk_dist import dist_do_building
143+
dist_do_building(BSP_ROOT, dist_dir)

bsp/maxim/tools/sdk_dist.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import os
2+
import sys
3+
import shutil
4+
5+
cwd_path = os.getcwd()
6+
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
7+
8+
9+
# BSP dist function
10+
def dist_do_building(BSP_ROOT, dist_dir):
11+
from mkdist import bsp_copy_files
12+
import rtconfig
13+
14+
print("=> copy maxim bsp library")
15+
library_dir = os.path.join(dist_dir, 'libraries')
16+
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
17+
18+
print("=> copy bsp drivers")
19+
bsp_copy_files(os.path.join(library_path, 'HAL_Drivers'), os.path.join(library_dir, 'HAL_Drivers'))
20+
bsp_copy_files(os.path.join(library_path, 'MAX32660PeriphDriver'), os.path.join(library_dir, 'MAX32660PeriphDriver'))
21+

0 commit comments

Comments
 (0)