# The Zephyr SDK's environment as the nRF Connect SDK toolchain sets it: its arm # programs on PATH, where a module's find_program looks, and the SDK's location. case ":$PATH:" in *:/opt/zephyr-sdk/gnu/arm-zephyr-eabi/bin:*) ;; *) PATH=$PATH:/opt/zephyr-sdk/gnu/arm-zephyr-eabi/bin ;; esac export PATH ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk ZEPHYR_TOOLCHAIN_VARIANT=zephyr/gnu # Zephyr keeps its cache in ~/.cache/zephyr, and inside its own tree when ~/.cache is missing. [ -d "$HOME/.cache" ] || mkdir -p "$HOME/.cache" 2>/dev/null