Parcourir la source

swupdate,recuegui: get rid of AUTOREV

It's best practice in OE to have fixed revisions in _git recipes.
The main reason is that AUTOREV requires a connection to the server during
parsing. This will fail if no internet access is possible.

If AUTOREV is desired it should be put in local.conf via:

SRCREV_pn-PN = "${AUTOREV}"

This patch replaces all current uses of AUTOREV with the latest available
git revision.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Pascal Bach il y a 7 ans
Parent
commit
83ea4936be

+ 1 - 2
recipes-support/rescuegui/rescuegui_git.bb

@@ -17,8 +17,7 @@ SRC_URI = "git://github.com/sbabic/SWUpdateGUI.git;protocol=https \
 
 # Modify these as desired
 PV = "1.0+git${SRCPV}"
-#SRCREV = "e286a994e7ed4fc660d644634abc4837c1f78beb"
-SRCREV = "${AUTOREV}"
+SRCREV = "2d7b04b89efbec1f0670e979bc428da3121e16b3"
 
 S = "${WORKDIR}/git"
 

+ 1 - 15
recipes-support/swupdate/swupdate_git.bb

@@ -3,18 +3,4 @@ require swupdate_tools.inc
 
 DEFAULT_PREFERENCE = "-1"
 
-# If a recipe sets SRCREV to ${AUTOREV}, bitbake tries
-# a git ls-remote. This breaks when a mirror is built
-# and BB_NO_NETWORK is set.
-# To work-around the issue, sets the revision for the git
-# version to a fix commit (not relevant)
-# In casethe _git version is chosen, sets the revision
-# to TOT to test with last commit-id.
-def version_git(d):
-    version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
-    if version is not None and "git" in version:
-        return d.getVar("AUTOREV")
-    else:
-        return "c0fec16b3fc82b0db12d8ac58be7055ed1b8d439"
-
-SRCREV ?= '${@version_git(d)}'
+SRCREV = '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'