Lines Matching +full:board +full:- +full:schema

5 # SPDX-License-Identifier: Apache-2.0
13 - SNIPPET_NAMES: CMake list of discovered snippet names
14 - SNIPPET_FOUND_{snippet}: one per discovered snippet
68 for board, settings in snippet_data.get('boards', {}).items():
69 if board.startswith('/') and not board.endswith('/'):
70 _err(f"snippet file {pathobj}: board {board} starts with '/', so "
75 self.board2appends[board][variable].append(
111 # Change to linux-style paths for windows to avoid cmake escape character code issues
124 # WARNING. THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!
158 for board, appends in snippet.board2appends.items():
159 self.print_appends_for_board(board, appends)
161 def print_appends_for_board(self, board: str, appends: Appends):
162 if board.startswith('/'):
163 board_re = board[1:-1]
165 # Appends for board regular expression '{board_re}'
166 if("${{BOARD}}${{BOARD_QUALIFIERS}}" MATCHES "^{board_re}$")''')
169 # Appends for board '{board}'
170 if("${{BOARD}}${{BOARD_QUALIFIERS}}" STREQUAL "{board}")''')
184 # Name of the file containing the pykwalify schema for snippet.yml
186 SCHEMA_PATH = str(Path(__file__).parent / 'schemas' / 'snippet-schema.yml')
199 SNIPPET_NAME_RE = re.compile('[A-Za-z0-9][A-Za-z0-9_-]*')
210 parser.add_argument('--snippet-root', default=[], action='append', type=Path,
213 parser.add_argument('--snippet', dest='snippets', default=[], action='append',
216 parser.add_argument('--cmake-out', type=Path,
219 parser.add_argument('--sysbuild', action="store_true",
231 def process_snippets(args: argparse.Namespace) -> Snippets:
247 def find_snippets_in_roots(requested_snippets, snippet_roots) -> Snippets:
263 def process_snippets_in(root_dir: Path, snippets: Snippets, sysbuild: bool) -> None:
288 def load_snippet_yml(snippet_yml: Path) -> dict:
290 against the schema, and do other basic checks. Return the dict
316 'dashes (-), and underscores (_)')
320 def check_for_errors(snippets: Snippets) -> None:
330 def write_cmake_out(snippets: Snippets, cmake_out: Path) -> None:
338 with open(cmake_out, 'w', encoding="utf-8") as f: