Skip to content

Commit 6da9c93

Browse files
committed
优化了sdk_dist.py中的dist_do_building函数,不会影响其他BSP的调用
1 parent 094d0b4 commit 6da9c93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bsp/imxrt/tools/sdk_dist.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
66

77
# BSP dist function
8-
def dist_do_building(BSP_ROOT, dist_dir):
8+
def dist_do_building(BSP_ROOT, dist_dir=None):
99
from mkdist import bsp_copy_files
1010
import rtconfig
1111

12+
if dist_dir is None:
13+
dist_dir = os.path.join(BSP_ROOT, 'dist', os.path.basename(BSP_ROOT))
14+
1215
print("=> copy imxrt bsp library")
1316
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
1417
library_dir = os.path.join(dist_dir, 'libraries')

0 commit comments

Comments
 (0)