zephyr/doc/application/apps_common_procedures.rst
Allan Stephens 7567c979dd unified/doc: Update Application Development Primer
Removes references to nanokernel/microkernel. Corrects numerous
errors in content. Improves consistency in presentation of
information.

Change-Id: I83895d2cb03181da377b23323afc104ae32865a2
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-11-03 20:27:38 +00:00

39 lines
865 B
ReStructuredText

.. _apps_common_procedures:
Common Procedures
#################
Instructions that are common to many procedures are provided here
and referred to from the procedures that require them.
Procedures
**********
.. _set_environment_variables:
Setting Environment Variables
=============================
Set environment variables every time you open a terminal console to work on
applications.
Steps
-----
1. In a shell terminal console, enter an :command:`export` command that is
consistent with your toolchain.
For the Zephyr SDK:
.. code-block:: console
$ export ZEPHYR_GCC_VARIANT=zephyr
$ export ZEPHYR_SDK_INSTALL_DIR=<yocto-installation-path>
2. To set the environment variable :envvar:`\$ZEPHYR_BASE`, navigate to the
kernel's installation directory and enter:
.. code-block:: console
$ source zephyr-env.sh