[yocto] linux-xilinx: SRCPV, SRCREV, LINUX_VERSION and the actually generated kernel version
Elvis Dowson
elvis.dowson at gmail.com
Fri Jun 22 12:45:01 PDT 2012
On Jun 22, 2012, at 11:39 PM, Elvis Dowson wrote:
> Even though I specify a specific value for SRCREV, as follows, SRCPV is always set to the latest commit it. The generated package folder gets the latest commit id appended because of SRCPV. So what should I do, append SRCREV or SRCPV for recipes that fetch from a git repository?
>
> For example, for the linux-xilinx_git.bb recipe, I have the following
>
> SRCREV = "a5556fb251253ccb674bd22d9703c37f6f8807a8"
>
> SRC_URI = "git://git.xilinx.com/linux-xlnx.git;protocol=git;branch=${KBRANCH} \
> file://defconfig"
>
> LINUX_VERSION = "2.6.37"
>
> PR = "r17"
> PV = "${LINUX_VERSION}+git${SRCPV}"
>
> NOTE: package linux-xilinx-2.6.37+git1+ed63a4d76efadcb68f5776e4244766ffea226cc4-r17: task do_fetch: Started
>
> The package folder name that gets generated is as follows (SRCPV). I notice that nearly all the recipes that fetch from git use SRCPV. In my specific case, should I be using SRCREV instead? I would like to know when to use SRCPV and SRCREV, while working with recipes that fetch from git repositories.
>
The weird thing is if I try to use SRCREV to append to the PV, it adds gitAUTOINC to the folder name , which is very weird.
SRCREV = "a5556fb251253ccb674bd22d9703c37f6f8807a8"
SRC_URI = "git://git.xilinx.com/linux-xlnx.git;protocol=git;branch=${KBRANCH} \
file://defconfig"
LINUX_VERSION = "2.6.37"
PR = "r17"
-PV = "${LINUX_VERSION}+git${SRCPV}"
+PV = "${LINUX_VERSION}+git${SRCREV}"
NOTE: package linux-xilinx-2.6.37+gitAUTOINC-r17: task do_fetch: Started
So, I'm not sure what the correct thing to do is. In the end, the generated package folder name is incorrect because it doesn't correctly reflect the correct commit id , as specified by the SRCREV.
Best regards,
Elvis Dowson
More information about the yocto
mailing list