| /Zephyr-4.3.0/tests/boot/with_mcumgr/pytest/ |
| D | west_sign_wrapper.py | 11 from pathlib import Path 17 def get_imgtool_path() -> Path: 19 zephyr_base = os.getenv("ZEPHYR_BASE") or Path(__file__).parents[4] 20 return Path(zephyr_base).parent / "bootloader" / "mcuboot" / "scripts" / "imgtool.py" 24 build_dir: Path, argument 25 output_bin: Path | None = None, 26 key_file: Path | None = None,
|
| D | test_upgrade.py | 7 from pathlib import Path 21 def create_signed_image(build_dir: Path, app_build_dir: Path, version: str) -> Path: argument 22 image_to_test = Path(build_dir) / 'test_{}.signed.bin'.format( 25 Path(build_dir) / 'mcuboot' / 'zephyr' / '.config', 29 build_dir=Path(app_build_dir), 31 key_file=Path(origin_key_file), 38 def get_upgrade_string_to_verify(build_dir: Path) -> str: argument 39 sysbuild_config = Path(build_dir) / 'zephyr' / '.config' 125 Path(dut.device_config.app_build_dir) / 'zephyr' / '.config', 186 Path(dut.device_config.build_dir) / 'mcuboot' / 'zephyr' / '.config', [all …]
|
| /Zephyr-4.3.0/samples/subsys/testsuite/pytest/shell/pytest_shared_app/ |
| D | test_shared_app.py | 7 from pathlib import Path 17 assert Path(required_build_dirs[0]).is_dir() 18 assert Path(Path(required_build_dirs[0]) / 'build.log').exists()
|
| /Zephyr-4.3.0/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-4.3.0/scripts/west_commands/tests/west_build/ |
| D | test_dir_fmt.py | 9 from pathlib import Path 14 ROOT = Path(Path.cwd().anchor) 75 'source_dir_workspace': str(Path('my') / 'project'), 87 'source_dir_workspace': str(Path('path') / 'to' / 'my-project'), 120 ({}, None, Path('build')), 122 ({}, Namespace(build_dir='from-args'), Path('from-args')), 123 ({'dir-fmt': 'from-dir-fmt'}, Namespace(build_dir='from-args'), Path('from-args')), 146 ({'dir-fmt': '{source_dir_workspace}'}, None, Path('subdir') / 'project' / 'app'), 151 Path('build') / 'outside' / 'living' / 'app',
|
| D | test_resolve_build_dir.py | 5 from pathlib import Path 10 cwd = Path.cwd() 11 root = Path(cwd.anchor) 21 ('{source_dir}', {'source_dir': TEST_CWD / '..' / 'subdir'}, str(Path('..') / 'subdir')),
|
| /Zephyr-4.3.0/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 | stlink_gdbserver.py | 14 from pathlib import Path 23 def _get_stm32cubeclt_paths(cls) -> tuple[Path, Path]: 30 def find_highest_clt_version(tools_folder: Path) -> Path | None: argument 36 installations: list[tuple[int, Path]] = [] 63 return (Path(gdbserv), Path(cubeprg).parent) 78 clt = find_highest_clt_version(Path(search_path)) 171 elf_path = Path(self.cfg.elf_file).as_posix()
|
| D | stm32cubeprogrammer.py | 15 from pathlib import Path 43 cli: Path | None, 91 def _get_stm32cubeprogrammer_path() -> Path: 97 return Path(cmd) 100 Path.home() 111 return Path(cmd) 114 Path("STMicroelectronics") 120 x86_path = Path(os.environ["PROGRAMFILES(X86)"]) / cli 124 return Path(os.environ["PROGRAMW6432"]) / cli 129 return Path(cmd) [all …]
|
| /Zephyr-4.3.0/scripts/west_commands/tests/ |
| D | test_build.py | 9 from pathlib import Path 64 cwd = Path(os.getcwd()) 117 assert Path(b.build_dir) == cwd / DEFAULT_BUILD_DIR 130 assert Path(b.build_dir) == expected 143 assert Path(b.build_dir) == cwd / DEFAULT_BUILD_DIR 157 assert Path(b.build_dir) == cwd / dir_fmt 170 assert Path(b.build_dir) == cwd / dir_fmt 182 assert Path(b.build_dir) == cwd 195 assert Path(b.build_dir) == cwd 209 assert Path(b.build_dir) == cwd
|
| /Zephyr-4.3.0/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-4.3.0/doc/_extensions/zephyr/kconfig/ |
| D | __init__.py | 42 from pathlib import Path 62 sys.path.insert(0, str(Path(__file__).parents[4] / "scripts")) 63 sys.path.insert(0, str(Path(__file__).parents[4] / "scripts/kconfig")) 70 RESOURCES_DIR = Path(__file__).parent / "static" 71 ZEPHYR_BASE = Path(__file__).parents[4] 90 with open(Path(td) / "kconfig_module_dirs.env", "w") as f: 93 with open(Path(td) / "Kconfig.modules", "w") as f: 96 with open(Path(td) / "Kconfig.sysbuild.modules", "w") as f: 102 with open(Path(td) / "Kconfig.dts", "w") as f: 105 (Path(td) / 'soc').mkdir(exist_ok=True) [all …]
|
| /Zephyr-4.3.0/scripts/pylib/pytest-twister-harness/tests/device/ |
| D | hardware_adapter_test.py | 7 from pathlib import Path 43 device.device_config.build_dir = Path('build') 51 device.device_config.build_dir = Path('build') 62 device.device_config.build_dir = Path('build') 73 device.device_config.build_dir = Path('build') 86 device.device_config.build_dir = Path('build') 99 device.device_config.build_dir = Path('build') 111 device.device_config.build_dir = Path('build') 123 device.device_config.build_dir = Path('build') 136 device.device_config.build_dir = Path('build') [all …]
|
| /Zephyr-4.3.0/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 215 zephyr_base = Path(zephyr_base_env) 217 zephyr_base = Path(__file__).resolve().parents[2] 317 Path(base_dir).mkdir(parents=True, exist_ok=True) 321 filename = Path(tempdir) / re.sub(r"^.*/", "", archive_url) 347 desc=Path(file.name).name, 376 extracted_dirs = [d for d in Path(tempdir).iterdir() if d.is_dir()] 382 dest_dir = Path(base_dir / dir_name) 384 dest_dir = Path(base_dir / extracted_dirs[0].name) 386 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))
|
| /Zephyr-4.3.0/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
| D | twister_harness_config.py | 10 from pathlib import Path 28 build_dir: Path 41 pre_script: Path | None = None 42 post_script: Path | None = None 43 post_flash_script: Path | None = None 45 app_build_dir: Path | None = None 114 def _cast_to_path(path: str | None) -> Path | None: 117 return Path(path)
|
| /Zephyr-4.3.0/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-4.3.0/doc/_extensions/zephyr/ |
| D | doxyrunner.py | 52 from pathlib import Path 66 def hash_file(file: Path) -> str: argument 135 outdir: Path, argument 222 path = Path(file) 290 Path(f_doxyfile_name).unlink() 296 def sync_doxygen(doxyfile: str, new: Path, prev: Path) -> None: argument 333 (Path(dcmp.right) / file).unlink() 336 shutil.copy(Path(dcmp.left) / file, Path(dcmp.right) / file) 352 outdir = Path(config["outdir"]) 354 outdir = Path(app.outdir) / "_doxygen" / name
|
| 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() 149 src_adjusted = Path(td) / src.name
|
| /Zephyr-4.3.0/scripts/tests/twister/ |
| D | test_twister.py | 10 from pathlib import Path 53 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning… 54 schema = scl.yaml_load(Path(ZEPHYR_BASE) / "scripts/schemas/twister/testsuite-schema.yaml") 96 filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_twister.py"
|
| D | __init__.py | 7 from pathlib import Path 9 ZEPHYR_BASE = os.getenv("ZEPHYR_BASE", str(Path(__file__).parents[3]))
|
| /Zephyr-4.3.0/scripts/ci/ |
| D | errno.py | 17 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-4.3.0/scripts/utils/ |
| D | migrate_bindings_style.py | 13 from pathlib import Path 18 BINDINGS_PATH = [Path("dts/bindings/")] 20 with open(Path(__file__).parents[1] / 'bindings_properties_allowlist.yaml') as f: 30 parse.add_argument("--path", nargs="+", help="User binding path directory", type=Path)
|