summaryrefslogtreecommitdiff
path: root/doc/sphinx/userguide/standalone.rst
blob: ee31362fd3551cf9c7c1958cd40c5764ff79382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Creating a Standalone Project
=============================

You can export a program to a standalone project directory using the ``standalone``
target. The resulting project will be locked to a specific ``TARGET``. Note
that this functionality is only supported for Freedom Metal programs, not the
Legacy Freedom E SDK.

``STANDALONE_DEST`` is a required argument to provide the desired project location.

You can include the argument ``INCLUDE_METAL_SOURCES=1`` if you would like to
include the sources for the Freedom Metal library in the generated standalone
project. If this argument is not included, then the Freedom Metal library will
be included in the generated project as a pre-built archive.

.. code-block:: bash

   make [PROGRAM=hello] [TARGET=sifive-hifive1] [INCLUDE_METAL_SOURCES=1] STANDALONE_DEST=/path/to/desired/location standalone