Boie, Andrew P
From: Perez-Gonzalez, Inaky [mailto:inaky.perez-gonzalez(a)intel.com]I don't believe this is the case.
You do have to set ZEPHYR_GCC_VARIANT and ZEPHYR_SDK_INSTALL_DIR. I put them in my .bashrc:
However, ZEPHYR_BASE is specific to what Zephyr tree you are working in. I personally have several that I work in. This is not something I would want to globally set in my .bashrc. At minimum we would need to transplant this logic to the Makefiles.
From looking at the script it additionally:
1. Appends the ZEPHYR_BASE/scripts directory to the PATH
2. Sources ~/.zephyrrc if it exists (not sure what the use-case for this is, I don't personally use it).
Both of these seem optional, but to run stuff like sanitycheck from the command line you'd have to include a full path.