On 20/04/2016, 15:58, "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez(a)intel.com> wrote:
On Wed, 2016-04-20 at 19:53 +0000, Boie, Andrew P wrote:
Certainly, ZEPHYR_BASE is tree-specific (so could be the other in
I don't believe this is the case.
From: Perez-Gonzalez, Inaky [mailto:inaky.perez-gonzalez(a)intel.com]
Currently we require the user to source the zephyr-env.sh
set up the build environment. This is awkward; things build fine
it and the user still has to manually setup ZEPHYR_BASE,
ZEPHYR_GCC_VARIANT and ZEPHYR_SDK_INSTALL_DIR. zephyr-env.sh has
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.
certain cases, but uncommon). I also do set it manually (in fact, as I
said somewhere, I feed it to make's command line)
if you think doing this
# make ZEPHYR_BASE=/path/to/source/tree BOARD=blah blah
hundreds of times per day is more convenient than doing 'source zephyr-env.sh’ once a day per shell then we have a different definition of convenience :-)
From looking at the script it additionally:This is the only one that might have some use--however, it still forces
1. Appends the ZEPHYR_BASE/scripts directory to the PATH
you to work on the same session; if you fly through windows and tabs,
like I do, it's not as useful.
2. Sources ~/.zephyrrc if it exists (not sure what the use-case forI haven't heard of anyone ever using this (hopefully they'll come up in
this is, I don't personally use it).
I use it and it is also documented in the getting started guide.
Both of these seem optional, but to run stuff like sanitycheck fromCan we fold a 'make sanitycheck'-like solution? After all, if we can
the command line you'd have to include a full path.
figure out access to the Makefile, we can use it for accessing the
then you have to support all the nice options of sanity checks using make, do not know how user-friendly this will be.