Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1eaf2f

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

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
ifkey[0]=="build"andkey[1]!="info":
5757
returnFalse
58+
ifkey[0]=="vid"orkey[0]=="pid":
59+
returnFalse
5860
returnTrue
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
delboardstxt_cfg["menu"]# blacklist what we don't need

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp