Lines Matching +full:line +full:- +full:name
12 - ``-b|--board``: The name of the board to migrate.
13 - ``-g|--group``: The group the board belongs to. This is used to group a set of
16 - ``-v|--vendor``: The vendor name.
17 - ``-s|--soc``: The SoC name.
19 In some cases, the new board name will differ from the old board name. For
20 example, the old board name may have the SoC name as a suffix, while in HWMv2,
21 this is no longer needed. In such cases, ``-n|--new-board`` needs to be
24 For boards with variants, ``--variants`` needs to be provided.
26 For out-of-tree boards, provide ``--board-root`` pointing to the custom board
30 SPDX-License-Identifier: Apache-2.0
60 f_new = new_board_path / f.name
71 "name": new_board,
77 with open(board_settings_file, encoding='utf-8') as f:
79 board_settings = yaml.load(f) # pylint: disable=assignment-from-no-return
81 soc = {"name": soc}
83 soc["variants"] = [{"name": variant} for variant in variants]
99 for line in f.readlines():
100 m = re.match(r"^CONFIG_BOARD_.*$", line)
105 m = re.match(r"^CONFIG_(SOC_[A-Z0-9_]+).*$", line)
108 if not re.match(r"^CONFIG_SOC_SERIES_.*$", line):
112 if dropped_line and re.match(r"^$", line):
116 board_defconfig += line
128 for line in f.readlines():
130 m = re.match(r"^config BOARD$", line)
135 if in_board and re.match(r"^\s+.*$", line):
140 m = re.match(r"^config .*$", line)
144 m = re.match(rf"^(.*)BOARD_{board.upper()}(.*)$", line)
151 board_kconfig_defconfig += line
164 for line in f.readlines():
165 if "Copyright" in line:
166 copyright = line
168 header = "# SPDX-License-Identifier: Apache-2.0\n"
192 "--board-root",
198 parser.add_argument("-b", "--board", type=str, required=True, help="Board name")
199 parser.add_argument("-n", "--new-board", type=str, help="New board name")
200 parser.add_argument("-g", "--group", type=str, required=True, help="Board group")
201 parser.add_argument("-v", "--vendor", type=str, required=True, help="Vendor name")
202 parser.add_argument("-s", "--soc", type=str, required=True, help="Board SoC")
203 parser.add_argument("--variants", nargs="+", default=[], help="Board variants")