diff mbox series

[meta-swupdate] Allow .bbappend files to overwrite SRCREV

Message ID 20180905211110.30688-1-code@reto-schneider.ch
State Accepted
Headers show
Series [meta-swupdate] Allow .bbappend files to overwrite SRCREV | expand

Commit Message

Reto Schneider Sept. 5, 2018, 9:11 p.m. UTC
From: Reto Schneider <reto.schneider@husqvarnagroup.com>

For example, when putting the following content into a swupdate_git.bbappend,
the most recent commit in master as of 2018-09-05 gets used:

SRCREV = 'd8069ae82853c2dc6b8400a29ec51b1b556e4134'

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
---
 recipes-support/swupdate/swupdate_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Sept. 6, 2018, 11:24 a.m. UTC | #1
On 05/09/2018 23:11, Reto Schneider wrote:
> From: Reto Schneider <reto.schneider@husqvarnagroup.com>
> 
> For example, when putting the following content into a swupdate_git.bbappend,
> the most recent commit in master as of 2018-09-05 gets used:
> 
> SRCREV = 'd8069ae82853c2dc6b8400a29ec51b1b556e4134'
> 
> Signed-off-by: Reto Schneider <code@reto-schneider.ch>
> ---
>  recipes-support/swupdate/swupdate_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-support/swupdate/swupdate_git.bb b/recipes-support/swupdate/swupdate_git.bb
> index c3d9c8d..ec13491 100644
> --- a/recipes-support/swupdate/swupdate_git.bb
> +++ b/recipes-support/swupdate/swupdate_git.bb
> @@ -3,4 +3,4 @@ require swupdate_tools.inc
>  
>  DEFAULT_PREFERENCE = "-1"
>  
> -SRCREV = '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'
> +SRCREV ?= '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'
> 

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

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate_git.bb b/recipes-support/swupdate/swupdate_git.bb
index c3d9c8d..ec13491 100644
--- a/recipes-support/swupdate/swupdate_git.bb
+++ b/recipes-support/swupdate/swupdate_git.bb
@@ -3,4 +3,4 @@  require swupdate_tools.inc
 
 DEFAULT_PREFERENCE = "-1"
 
-SRCREV = '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'
+SRCREV ?= '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'