]> code.ossystems Code Review - openembedded-core.git/commitdiff
u-boot: set SRCREV to a git revision instead of a tag reference
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 21 Jun 2011 17:13:28 +0000 (18:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Jun 2011 15:20:03 +0000 (16:20 +0100)
If we use a tag here then bitbake has to connect to the repository to find
out the corresponding revision (so it can expand SRCPV which is part of PV,
which amongst other things is needed to determine whether or not the
package has to be rebuilt.) This occurs at parse time; on machines behind a
firewall or with no network access this can be a problem.

We wish to avoid unnecessary network accesses and network access in our
default configuration during parse time is even worse. Substituting the
git revision corresponding to the tag prevents bitbake from having to
contact the remote repository in order to expand PV.

Addresses [YOCTO #1186]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/recipes-bsp/uboot/u-boot_2011.03.bb

index 07f0609194ea429b362c3b4b6bc0ed33f85a32a9..34655ead595d2ddb64fb9afe1f7fc17646cf7aca 100644 (file)
@@ -12,9 +12,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE}"
 
-SRCREV = "v2011.03"
+# This revision corresponds to the tag "v2011.03"
+# We use the revision in order to avoid having to fetch it from the repo during parse
+SRCREV = "19b54a701811220221fc4d5089a2bb18892018ca"
+
 PV = "v2011.03+git${SRCPV}"
-PR="r4"
+PR = "r5"
 
 SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"