This tool installs Zephyr's host dependencies automatically. It is designed to be as standalone and portable as possible to avoid polluting the host's environment and prevent conflicts. It works on Windows and Linux (coming soon on MacOS)
Using powershell (not administrator)
$ powershell -ExecutionPolicy Bypass -File .\install.ps1
The script will automatically create environnement scripts in $env:USERPROFILE\.zinstaller\ that should be sourced so you access to west and the other tools
Using PowerShell:
$ Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
$ & "$env:USERPROFILE\.zinstaller\env.ps1"
Alternatively, using Command Prompt (cmd):
$ %USERPROFILE%\.zinstaller\env.bat
$ west init ~/zephyrproject
$ cd ~/zephyrproject
$ west update
Currently supported on Ubuntu 20.04 or newer.
$ bash install.sh
$ source ~/.zinstaller/env.sh
Initialize and build Hello World:
$ west init zephyrtest && cd zephyrtest && west update
$ ZEPHYR_SDK_INSTALL_DIR=~/.zinstaller/zephyr-sdk-0.16.8 west build -b stm32f4_disco zephyr/samples/hello_world