Skip to content

Commit 115d040

Browse files
committed
chore(cmake): handle default vid/pid
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 35252af commit 115d040

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmake/scripts/update_boarddb.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def platformtxt_filter(key):
5555

5656
if key[0] == "build" and key[1] != "info":
5757
return False
58+
if key[0] == "vid" or key[0] == "pid":
59+
return False
5860
return True
5961

6062

@@ -104,7 +106,12 @@ def regenerate_template(config, infile, outfile):
104106
shargs = parser.parse_args()
105107

106108
platformtxt_cfg = parse_file(shargs.platform, reject=platformtxt_filter)
107-
platformtxt_cfg = {"build": platformtxt_cfg["build"]} # whitelist what we need
109+
# whitelist what we need
110+
platformtxt_cfg = {
111+
"build": platformtxt_cfg["build"],
112+
"vid": platformtxt_cfg["vid"],
113+
"pid": platformtxt_cfg["pid"],
114+
}
108115

109116
boardstxt_cfg = parse_file(shargs.boards, reject=boardstxt_filter)
110117
del boardstxt_cfg["menu"] # blacklist what we don't need

0 commit comments

Comments
 (0)