Skip to content

Commit 1a555c9

Browse files
committed
Update stm32wrapper.py script for stm32mp1 startup files
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 8ebb30b commit 1a555c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CI/utils/stm32wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ def printCMSISStartup(log):
131131
# File name
132132
fn = os.path.basename(fp)
133133
valueline = re.split("_|\\.", fn)
134-
upper = (
135-
valueline[1].upper().replace("X", "x").replace("MP15xx", "MP1xx")
136-
)
134+
if "stm32mp15" in valueline[1] and not valueline[1].endswith("xx"):
135+
valueline[1] += "xx"
136+
upper = valueline[1].upper().replace("X", "x")
137137
out_file.write(
138138
""" #elif defined({})
139139
#define CMSIS_STARTUP_FILE \"{}\"

0 commit comments

Comments
 (0)