Skip to content

Commit cc8ca1c

Browse files
committed
chore(cmake): handle openocd config
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 272f3fc commit cc8ca1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: cmake/scripts/update_boarddb.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_fpconf(config):
1313

1414

1515
def boardstxt_filter(key):
16-
# Remove menu entry labels
16+
# Remove menu entry labels and oopenocd config if any
1717
# In our data model, they conflict with the actual configuration
1818
# they are associated to
1919
# i.e. Nucleo_144.menu.pnum.NUCLEO_F207ZG would be both
@@ -22,7 +22,8 @@ def boardstxt_filter(key):
2222

2323
if key[-1] == "svd_file":
2424
return True
25-
25+
if len(key) >= 5 and key[-2] == "scripts" and key[-3] == "openocd":
26+
return True
2627
if key[0] == "menu":
2728
# menu.xserial=U(S)ART support
2829
return True

0 commit comments

Comments
 (0)