summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-02-13 10:22:14 -0800
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-02-13 10:39:15 -0800
commitcb8873379bd03d84352a6d28e985ab975b555dbb (patch)
tree11e63b32f59c955f17f2f497933795c4fd69bfc0
parent742360812845743f6eb67813fbb97ee60029c45c (diff)
Document INCLUDE_METAL_SOURCES for standalone target
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
-rw-r--r--Makefile3
-rw-r--r--README.md7
-rw-r--r--doc/sphinx/userguide/standalone.rst7
3 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 19347b8..20a4a5d 100644
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,8 @@ help:
@echo " Launch OpenOCD and attach GDB to the running program."
@echo ""
@echo " standalone BSP=metal STANDALONE_DEST=/path/to/desired/location"
- @echo " [PROGRAM=$(PROGRAM) TARGET=$(TARGET)]:"
+ @echo " [INCLUDE_METAL_SOURCES=1] [PROGRAM=$(PROGRAM)]"
+ @echo " [TARGET=$(TARGET)]:"
@echo " Export a program for a single target into a standalone"
@echo " project directory at STANDALONE_DEST."
@echo ""
diff --git a/README.md b/README.md
index 4ba9ee8..2484c5f 100644
--- a/README.md
+++ b/README.md
@@ -248,8 +248,13 @@ 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.
+
```
-make BSP=metal [PROGRAM=hello] [TARGET=sifive-hifive1] STANDALONE_DEST=/path/to/desired/location standalone
+make BSP=metal [PROGRAM=hello] [TARGET=sifive-hifive1] [INCLUDE_METAL_SOURCES=1] STANDALONE_DEST=/path/to/desired/location standalone
```
Run `make help` for more commands.
diff --git a/doc/sphinx/userguide/standalone.rst b/doc/sphinx/userguide/standalone.rst
index 58f7f51..61214d2 100644
--- a/doc/sphinx/userguide/standalone.rst
+++ b/doc/sphinx/userguide/standalone.rst
@@ -8,7 +8,12 @@ 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 BSP=mee [PROGRAM=hello] [TARGET=sifive-hifive1] STANDALONE_DEST=/path/to/desired/location standalone
+ make BSP=mee [PROGRAM=hello] [TARGET=sifive-hifive1] [INCLUDE_METAL_SOURCES=1] STANDALONE_DEST=/path/to/desired/location standalone