Skip to content

Commit d1eaf2f

Browse files
committed
chore(cmake): handle default vid/pid
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 046dd84 commit d1eaf2f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmake/scripts/update_boarddb.py

Lines changed: 8 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy