diff mbox series

building-with-yocto.rst: Document BitBake variable expansion

Message ID 20181003142147.14370-1-code@reto-schneider.ch
State Accepted
Headers show
Series building-with-yocto.rst: Document BitBake variable expansion | expand

Commit Message

Reto Schneider Oct. 3, 2018, 2:21 p.m. UTC
Signed-off-by: Reto Schneider <code@reto-schneider.ch>
---
 doc/source/building-with-yocto.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/doc/source/building-with-yocto.rst b/doc/source/building-with-yocto.rst
index c5c5711..2064047 100644
--- a/doc/source/building-with-yocto.rst
+++ b/doc/source/building-with-yocto.rst
@@ -92,6 +92,16 @@  For example, to add sha256 to the standard Yocto core-image-full-cmdline:
 
 The name of the file must be the same as in deploy directory.
 
+BitBake variable expansion in sw-description
+--------------------------------------------
+
+To insert the value of a BitBake variable into the update file, pre- and
+postfix the variable name with "@@".
+For example, to automatically set the version tag:
+
+::
+
+        version = "@@DISTRO_VERSION@@";
 
 Template for recipe using the class
 -----------------------------------