summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries
diff options
context:
space:
mode:
authorSummerGift <[email protected]>2020-05-25 14:35:40 +0800
committerSummerGift <[email protected]>2020-05-25 14:36:42 +0800
commitfea7f2bb586c799c8a7ca173b2e66d454e50aaf1 (patch)
treec1152733418506bf69950265c94cf204b4164b6e /bsp/stm32/libraries
parent01873a56873ab0da2a981030e362c214075e9746 (diff)
[add] dist_dir function for every stm32 bsp
Diffstat (limited to 'bsp/stm32/libraries')
-rw-r--r--bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32f10x/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32h7xx/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py4
-rw-r--r--bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py4
8 files changed, 16 insertions, 16 deletions
diff --git a/bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
index 395d83ca99..df66c5a598 100644
--- a/bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
@@ -142,9 +142,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py b/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
index 46b00c62cd..0a6fdeee98 100644
--- a/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
@@ -142,9 +142,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py
index 5b3a3f31f0..c3838da594 100644
--- a/bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py
@@ -142,9 +142,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
index 0faea85775..00d5d737ac 100644
--- a/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
@@ -142,9 +142,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
index cf4cf47fe0..972d511975 100644
--- a/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
@@ -141,9 +141,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32h7xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32h7xx/rtconfig.py
index 780275b28c..2c9cbdd792 100644
--- a/bsp/stm32/libraries/templates/stm32h7xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32h7xx/rtconfig.py
@@ -143,9 +143,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py
index 0450b21fcd..a560d277b7 100644
--- a/bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py
@@ -142,9 +142,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)
diff --git a/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
index deb2083359..46756ce9da 100644
--- a/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
@@ -142,9 +142,9 @@ elif PLATFORM == 'iar':
EXEC_PATH = EXEC_PATH + '/arm/bin/'
POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
-def dist_handle(BSP_ROOT):
+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_do_building(BSP_ROOT, dist_dir)