diff --git a/bsp/imxrt/libraries/templates/imxrt1050xxx/rtconfig.py b/bsp/imxrt/libraries/templates/imxrt1050xxx/rtconfig.py index 0161c3fe7c7c0f9087e1f2d61624f93dbd58dcd0..6944bf739bdf4a2774dc2a3305a574d7d8d42fdf 100644 --- a/bsp/imxrt/libraries/templates/imxrt1050xxx/rtconfig.py +++ b/bsp/imxrt/libraries/templates/imxrt1050xxx/rtconfig.py @@ -147,3 +147,10 @@ elif PLATFORM == 'iar': EXEC_PATH = EXEC_PATH + '/arm/bin/' POST_ACTION = 'ielftool --bin $TARGET rtthread.bin' + +def dist_handle(BSP_ROOT, dist_dir): + import sys + cwd_path = os.getcwd() + sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools')) + from sdk_dist import dist_do_building + dist_do_building(BSP_ROOT, dist_dir