the official way to build zephyr projects with nordic ncs seem to create some magic shell:
nrfutil sdk-manager toolchain launch --ncs-version v3.4.0 --shell
however I prefer the proper cmake way (which I am always doing with upstream-zephyr). therfore I source my .venv and build cmake.
nordic suggests an env script like this:
ncs_install_dir=/opt/nordic/ncs # ~/ncs on Linux, C:/ncs on Windows
ncs_sdk_version=v3.4.0
ncs_bin_version=<toolchain_hash> # check toolchains/ directory
export PATH=$PATH:$ncs_install_dir/toolchains/$ncs_bin_version/bin
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=$ncs_install_dir/toolchains/$ncs_bin_version/opt/zephyr-sdk
# Source Zephyr's own environment script
source $ncs_install_dir/$ncs_sdk_version/zephyr/zephyr-env.sh
west zephyr-export
however this is missing the .venv and thus not working, ...
I cannot find a way without using the magic ncs shell => what is the nordic way of compiling zephyr with cmake?