diff mbox series

[meta-swupdate,1/2] swupdate: introduce var to build from different branch

Message ID 20250122154928.181992-1-stefano.babic@swupdate.org
State Changes Requested
Headers show
Series [meta-swupdate,1/2] swupdate: introduce var to build from different branch | expand

Commit Message

Stefano Babic Jan. 22, 2025, 3:49 p.m. UTC
Add a SRCBRANCH in cases it is required to get a maintenance branch.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 recipes-support/swupdate/swupdate.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--
2.43.0
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
index 859d4bd..44754f2 100644
--- a/recipes-support/swupdate/swupdate.inc
+++ b/recipes-support/swupdate/swupdate.inc
@@ -26,7 +26,8 @@  LIC_FILES_CHKSUM = " \

 inherit cml1 update-rc.d systemd pkgconfig

-SRC_URI = "git://github.com/sbabic/swupdate.git;protocol=https;branch=master \
+SRCBRANCH ?= "master"
+SRC_URI = "git://github.com/sbabic/swupdate.git;protocol=https;branch=${SRCBRANCH} \
     file://defconfig \
     file://swupdate \
     file://swupdate.sh \