/Zephyr-latest/tests/boot/with_mcumgr/pytest/ |
D | test_upgrade.py | 7 from pathlib import Path 18 def create_signed_image(build_dir: Path, app_build_dir: Path, version: str) -> Path: argument 19 image_to_test = Path(build_dir) / 'test_{}.signed.bin'.format( 22 Path(build_dir) / 'mcuboot' / 'zephyr' / '.config', 26 build_dir=Path(app_build_dir), 28 key_file=Path(origin_key_file), 35 def get_upgrade_string_to_verify(build_dir: Path) -> str: argument 36 sysbuild_config = Path(build_dir) / 'zephyr' / '.config' 117 Path(dut.device_config.app_build_dir) / 'zephyr' / '.config', 180 Path(dut.device_config.build_dir) / 'mcuboot' / 'zephyr' / '.config', [all …]
|
D | west_sign_wrapper.py | 10 from pathlib import Path 17 build_dir: Path, argument 18 output_bin: Path | None = None, 19 key_file: Path | None = None,
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/ |
D | conftest.py | 8 from pathlib import Path 18 def resources() -> Path: 20 return Path(__file__).parent.joinpath('resources') 35 …pytest_twister_harness_path = str(Path(zephyr_base) / 'scripts' / 'pylib' / 'pytest-twister-harnes… 40 def shell_simulator_path(resources: Path) -> str: argument 46 tmp_path: Path, shell_simulator_path: str argument
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | trace32.py | 10 from pathlib import Path 15 DEFAULT_T32_CONFIG = Path('config.t32') 31 t32_cfg: Path, argument 38 self.t32_exec: Path | None = None 39 self.startup_dir = Path(cfg.board_dir) / 'support' 60 type=Path, 97 self.t32_exec = Path(t32_dir) / 'bin' / os_name / f't32m{self.arch}{suffix}' 102 self.t32_cfg = Path(t32_dir) / self.t32_cfg 120 tmp_cfg = Path(tmp_dir) / DEFAULT_T32_CONFIG.name 137 cfg: Path | None = None) -> list[str]:
|
D | stm32cubeprogrammer.py | 15 from pathlib import Path 42 cli: Path | None, 89 def _get_stm32cubeprogrammer_path() -> Path: 95 return Path(cmd) 98 Path.home() 109 return Path(cmd) 112 Path("STMicroelectronics") 118 x86_path = Path(os.environ["PROGRAMFILES(X86)"]) / cli 122 return Path(os.environ["PROGRAMW6432"]) / cli 126 Path("/Applications") [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
D | twister_harness_config.py | 9 from pathlib import Path 20 build_dir: Path 34 pre_script: Path | None = None 35 post_script: Path | None = None 36 post_flash_script: Path | None = None 38 app_build_dir: Path | None = None 95 def _cast_to_path(path: str | None) -> Path | None: 98 return Path(path)
|
/Zephyr-latest/tests/misc/llext-edk/pytest/ |
D | test_edk.py | 9 from pathlib import Path 22 with open(Path(build_dir) / "build_info.yml") as f: 48 edk_path = Path(unlaunched_dut.device_config.build_dir) / "zephyr/llext-edk.tar.xz" 60 ext_dir = Path(os.environ["ZEPHYR_BASE"]) / "tests/misc/llext-edk/extension" 66 file2hex = Path(os.environ["ZEPHYR_BASE"]) / "scripts/build/file2hex.py" 71 edk_dir = Path(tempdir) / "llext-edk" 88 assert os.path.exists(Path(tempdir_extension) / "build/extension.llext")
|
/Zephyr-latest/doc/_extensions/zephyr/kconfig/ |
D | __init__.py | 42 from pathlib import Path 61 sys.path.insert(0, str(Path(__file__).parents[4] / "scripts")) 62 sys.path.insert(0, str(Path(__file__).parents[4] / "scripts/kconfig")) 69 RESOURCES_DIR = Path(__file__).parent / "static" 70 ZEPHYR_BASE = Path(__file__).parents[4] 83 with open(Path(td) / "Kconfig.modules", "w") as f: 89 with open(Path(td) / "Kconfig.dts", "w") as f: 92 (Path(td) / 'soc').mkdir(exist_ok=True) 93 root_args = argparse.Namespace(**{'soc_roots': [Path(ZEPHYR_BASE)]}) 97 with open(Path(td) / "soc" / "Kconfig.defconfig", "w") as f: [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | hardware_adapter_test.py | 7 from pathlib import Path 40 device.device_config.build_dir = Path('build') 48 device.device_config.build_dir = Path('build') 59 device.device_config.build_dir = Path('build') 70 device.device_config.build_dir = Path('build') 83 device.device_config.build_dir = Path('build') 96 device.device_config.build_dir = Path('build') 108 device.device_config.build_dir = Path('build') 120 device.device_config.build_dir = Path('build') 133 device.device_config.build_dir = Path('build') [all …]
|
/Zephyr-latest/scripts/west_commands/ |
D | patch.py | 14 from pathlib import Path 20 sys.path.append(os.fspath(Path(__file__).parent.parent)) 30 WEST_PATCH_SCHEMA_PATH = Path(__file__).parents[1] / "schemas" / "patch-schema.yml" 34 WEST_PATCH_BASE = Path("zephyr") / "patches" 35 WEST_PATCH_YAML = Path("zephyr") / "patches.yml" 110 type=Path, 119 type=Path, 126 type=Path, 235 type=Path, 273 topdir = Path(self.topdir) [all …]
|
D | sdk.py | 20 from pathlib import Path 210 zephyr_base = Path(os.environ["ZEPHYR_BASE"]) 212 zephyr_base = Path(__file__).parents[2] 309 Path(base_dir).mkdir(parents=True, exist_ok=True) 313 filename = Path(tempdir) / re.sub(r"^.*/", "", archive_url) 339 desc=Path(file.name).name, 368 extracted_dirs = [d for d in Path(tempdir).iterdir() if d.is_dir()] 374 dest_dir = Path(base_dir / dir_name) 376 dest_dir = Path(base_dir / extracted_dirs[0].name) 378 Path(dest_dir).parent.mkdir(parents=True, exist_ok=True) [all …]
|
D | zephyr_ext_common.py | 13 from pathlib import Path 19 THIS_ZEPHYR = Path(__file__).parent.parent.parent 20 ZEPHYR_BASE = Path(os.environ.get('ZEPHYR_BASE', THIS_ZEPHYR))
|
D | build_helpers.py | 16 from pathlib import Path 61 parts = Path(fmt).parts 62 b = Path('.') 70 b = Path(str(b).format(**kwargs)) 151 domains_file = Path(path) / 'domains.yaml'
|
D | flash.py | 13 from pathlib import Path 32 domains_file = Path(build_dir) / 'domains.yaml'
|
/Zephyr-latest/doc/_extensions/zephyr/ |
D | external_content.py | 38 from pathlib import Path 51 fname: Path, argument 52 basepath: Path, argument 55 dstpath: Path | None = None, 79 fpath_adj = Path(os.path.relpath(basepath / fpath, dstpath)).as_posix() 101 srcdir = Path(app.srcdir).resolve() 144 src_adjusted = Path(td) / src.name
|
D | doxyrunner.py | 52 from pathlib import Path 66 def hash_file(file: Path) -> str: argument 134 outdir: Path, argument 221 path = Path(file) 289 Path(f_doxyfile_name).unlink() 295 def sync_doxygen(doxyfile: str, new: Path, prev: Path) -> None: argument 332 (Path(dcmp.right) / file).unlink() 335 shutil.copy(Path(dcmp.left) / file, Path(dcmp.right) / file) 351 outdir = Path(config["outdir"]) 353 outdir = Path(app.outdir) / "_doxygen" / name
|
/Zephyr-latest/scripts/west_commands/fetchers/ |
D | __init__.py | 8 from pathlib import Path 32 fetchers_dir = Path(__file__).parent.resolve() 34 file = fetchers_dir / Path(f)
|
D | core.py | 6 from pathlib import Path 22 def fetch(self, url: str, path: Path): argument
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_twister.py | 15 from pathlib import Path 56 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning… 57 schema = scl.yaml_load(Path(ZEPHYR_BASE) / "scripts/schemas/twister/testsuite-schema.yaml") 99 filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_twister.py"
|
D | test_errors.py | 12 from pathlib import Path 19 cfile = Path('some') / 'path'
|
/Zephyr-latest/scripts/ci/ |
D | errno.py | 16 from pathlib import Path 33 minimal = Path("lib/libc/minimal/include/errno.h") 34 newlib = Path("arm-zephyr-eabi/arm-zephyr-eabi/include/sys/errno.h")
|
/Zephyr-latest/scripts/ |
D | list_shields.py | 9 from pathlib import Path 23 dir: Path 63 type=Path, action='append',
|
D | snippets.py | 19 from pathlib import Path, PurePosixPath 51 def process_data(self, pathobj: Path, snippet_data: dict, sysbuild: bool): argument 86 self.paths: Set[Path] = set() 186 SCHEMA_PATH = str(Path(__file__).parent / 'schemas' / 'snippet-schema.yml') 210 parser.add_argument('--snippet-root', default=[], action='append', type=Path, 216 parser.add_argument('--cmake-out', type=Path, 263 def process_snippets_in(root_dir: Path, snippets: Snippets, sysbuild: bool) -> None: argument 280 snippet_yml = Path(dirpath) / SNIPPET_YML 288 def load_snippet_yml(snippet_yml: Path) -> dict: argument 330 def write_cmake_out(snippets: Snippets, cmake_out: Path) -> None: argument
|
/Zephyr-latest/doc/_extensions/zephyr/doxytooltip/ |
D | __init__.py | 12 from pathlib import Path 20 RESOURCES_DIR = Path(__file__).parent / "static"
|
/Zephyr-latest/scripts/utils/ |
D | migrate_includes.py | 21 from pathlib import Path 23 ZEPHYR_BASE = Path(__file__).parents[2] 79 "-p", "--project", type=Path, required=True, help="Zephyr-based project path"
|