diff mbox series

building-with-yocto.rst: Extend documentation of automatic versions

Message ID 20210617154717.23285-1-thomas.haemmerle@leica-geosystems.com
State Accepted
Headers show
Series building-with-yocto.rst: Extend documentation of automatic versions | expand

Commit Message

Thomas Haemmerle June 17, 2021, 3:47 p.m. UTC
Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
---
 doc/source/building-with-yocto.rst | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Comments

Stefano Babic June 18, 2021, 12:10 p.m. UTC | #1
Hi Thomas,

On 17.06.21 17:47, 'Thomas Haemmerle' via swupdate wrote:
> Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
> ---
>   doc/source/building-with-yocto.rst | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)
> 
> diff --git a/doc/source/building-with-yocto.rst b/doc/source/building-with-yocto.rst
> index a565e77..bc7d90c 100644
> --- a/doc/source/building-with-yocto.rst
> +++ b/doc/source/building-with-yocto.rst
> @@ -199,6 +199,25 @@ package `u-boot`:
>           ...
>           version = "@SWU_AUTO_VERSION:u-boot";
>   
> +To automatically insert the value of a variable from BitBake's package-data-file
> +different to `PV` (e.g. `PKGV`) you can append the variable name to the tag:
> +`@SWU_AUTO_VERSION@<package-data-variable>`.
> +For example, to set the version tag to `PKGV` of package `u-boot`:
> +
> +::
> +
> +        filename = "u-boot";
> +        ...
> +        version = "@SWU_AUTO_VERSION@PKGV";
> +
> +Or combined with a different package name:
> +
> +::
> +
> +        filename = "packed-bootloader";
> +        ...
> +        version = "@SWU_AUTO_VERSION:u-boot@PKGV";
> +
>   Template for recipe using the class
>   -----------------------------------
>   
> 

Reviewed-by : Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/doc/source/building-with-yocto.rst b/doc/source/building-with-yocto.rst
index a565e77..bc7d90c 100644
--- a/doc/source/building-with-yocto.rst
+++ b/doc/source/building-with-yocto.rst
@@ -199,6 +199,25 @@  package `u-boot`:
         ...
         version = "@SWU_AUTO_VERSION:u-boot";
 
+To automatically insert the value of a variable from BitBake's package-data-file
+different to `PV` (e.g. `PKGV`) you can append the variable name to the tag:
+`@SWU_AUTO_VERSION@<package-data-variable>`.
+For example, to set the version tag to `PKGV` of package `u-boot`:
+
+::
+
+        filename = "u-boot";
+        ...
+        version = "@SWU_AUTO_VERSION@PKGV";
+
+Or combined with a different package name:
+
+::
+
+        filename = "packed-bootloader";
+        ...
+        version = "@SWU_AUTO_VERSION:u-boot@PKGV";
+
 Template for recipe using the class
 -----------------------------------