mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-20 21:55:22 +00:00
Update to the latest west. This includes a new 'attach' command. There are also multi-repo commands, but those won't get exposed to the user unless they install Zephyr using "west init" + "west fetch" (and not, say, "git clone"). Replace the launchers; they now detect whether zephyr is part of a multi-repo installation, and run the west code in its own repository if that is the case. This also requires an update to: - the flash/debug CMakeLists.txt, as the new west package is no longer executable as a module and must have its main script run by the interpreter instead. - the documentation, to reflect a rename and with a hack to fix the automodule directive in flash-debug.rst for now Signed-off-by: Marti Bolivar <marti@foundries.io>
18 lines
588 B
Batchfile
18 lines
588 B
Batchfile
@echo off
|
|
set ZEPHYR_BASE=%~dp0
|
|
|
|
if exist "%userprofile%\zephyrrc.cmd" (
|
|
call "%userprofile%\zephyrrc.cmd"
|
|
)
|
|
|
|
rem Zephyr meta-tool (west) launcher alias, which keeps monorepo
|
|
rem Zephyr installations' 'make flash' etc. working. See
|
|
rem https://www.python.org/dev/peps/pep-0486/ for details on the
|
|
rem virtualenv-related pieces. (We need to implement this manually
|
|
rem because Zephyr's minimum supported Python version is 3.4.)
|
|
if defined VIRTUAL_ENV (
|
|
doskey west=python %ZEPHYR_BASE%\scripts\west-launcher.py $*
|
|
) else (
|
|
doskey west=py -3 %ZEPHYR_BASE%\scripts\west-launcher.py $*
|
|
)
|