2015-10-15 12:58:23 +08:00
|
|
|
.. _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
|
|
|
|
**********
|
|
|
|
|
2015-10-24 00:42:56 +08:00
|
|
|
.. _set_environment_variables:
|
2015-10-15 12:58:23 +08:00
|
|
|
|
|
|
|
Setting Environment Variables
|
|
|
|
=============================
|
|
|
|
|
|
|
|
Set environment variables every time you open a terminal console to work on
|
2015-10-21 01:28:33 +08:00
|
|
|
applications.
|
2015-10-15 12:58:23 +08:00
|
|
|
|
|
|
|
Steps
|
|
|
|
-----
|
|
|
|
|
|
|
|
1. In a shell terminal console, enter an :command:`export` command that is
|
2015-10-24 00:42:56 +08:00
|
|
|
consistent with your toolchain.
|
2015-10-15 12:58:23 +08:00
|
|
|
|
2015-10-21 04:33:19 +08:00
|
|
|
For the Zephyr SDK:
|
2015-10-15 12:58:23 +08:00
|
|
|
|
2015-10-21 04:33:19 +08:00
|
|
|
.. code-block:: console
|
2015-10-15 12:58:23 +08:00
|
|
|
|
2015-10-21 04:33:19 +08:00
|
|
|
$ export ZEPHYR_GCC_VARIANT=zephyr
|
|
|
|
$ export ZEPHYR_SDK_INSTALL_DIR=<yocto-installation-path>
|
2015-10-15 12:58:23 +08:00
|
|
|
|
2015-10-20 02:15:41 +08:00
|
|
|
2. To set the environment variable :envvar:`$(ZEPHYR_BASE)`, navigate to the
|
|
|
|
kernel's installation directory and enter:
|
2015-10-15 12:58:23 +08:00
|
|
|
|
2015-10-21 04:33:19 +08:00
|
|
|
.. code-block:: console
|
2015-10-15 12:58:23 +08:00
|
|
|
|
2015-10-20 02:15:41 +08:00
|
|
|
$ source zephyr-env.sh
|