Lines Matching +full:- +full:f
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.
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
46 board_path = next(board_root.glob(f"boards/*/{board}"))
48 sys.exit(f"Board not found: {board}")
59 for f in board_path.iterdir():
60 f_new = new_board_path / f.name
62 print(f"Skipping existing file: {f_new}")
64 f.rename(f_new)
77 with open(board_settings_file, encoding='utf-8') as f:
79 board_settings = yaml.load(f) # pylint: disable=assignment-from-no-return
89 with open(board_settings_file, "w") as f:
90 yaml.dump(board_settings, f)
92 print(f"Updating {board}_defconfig...")
93 board_defconfig_file = new_board_path / f"{board}_defconfig"
94 with open(board_defconfig_file) as f:
99 for line in f.readlines():
105 m = re.match(r"^CONFIG_(SOC_[A-Z0-9_]+).*$", line)
118 with open(board_defconfig_file, "w") as f:
119 f.write(board_defconfig)
123 with open(board_kconfig_defconfig_file) as f:
128 for line in f.readlines():
154 with open(board_kconfig_defconfig_file, "w") as f:
155 f.write(board_kconfig_defconfig)
160 print(f"Creating or updating Kconfig.{new_board}...")
163 with open(board_kconfig_file) as f:
164 for line in f.readlines():
167 new_board_kconfig_file = new_board_path / f"Kconfig.{new_board}"
168 header = "# SPDX-License-Identifier: Apache-2.0\n"
173 with open(new_board_kconfig_file, "w") as f:
174 f.write(
176 f"\nconfig BOARD_{new_board.upper()}{selects}"
179 with open(new_board_kconfig_file, "a") as f:
180 f.write(selects)
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")