Lines Matching refs:f
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():
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}"
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)