Skip to content

Commit 0c19ea1

Browse files
committed
[bsp][rockchip] Fix dist packaging for shared dm drivers
1 parent 09517db commit 0c19ea1

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

bsp/rockchip/rk3300/rtconfig.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ def _ld_option_supported(ld_path, option):
6464

6565
DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n'
6666
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
67+
68+
def dist_handle(BSP_ROOT, dist_dir):
69+
import sys
70+
sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools'))
71+
from sdk_dist import dist_do_building
72+
dist_do_building(BSP_ROOT, dist_dir)

bsp/rockchip/rk3500/rtconfig.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@ def _ld_option_supported(ld_path, option):
7070
DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n'
7171
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
7272
POST_ACTION += 'md5sum rtthread.bin\n'
73+
74+
def dist_handle(BSP_ROOT, dist_dir):
75+
import sys
76+
sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools'))
77+
from sdk_dist import dist_do_building
78+
dist_do_building(BSP_ROOT, dist_dir)

bsp/rockchip/tools/sdk_dist.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import os
2+
3+
4+
def dist_do_building(BSP_ROOT, dist_dir):
5+
from mkdist import bsp_copy_files
6+
7+
print("=> copy rockchip dm")
8+
bsp_copy_files(os.path.join(os.path.dirname(BSP_ROOT), 'dm'),
9+
os.path.join(os.path.dirname(dist_dir), 'dm'))

0 commit comments

Comments
 (0)