[poky] linux recipe PV requirements

Joshua Lock josh at openedhand.com
Wed Nov 24 03:42:07 PST 2010


On Tue, 2010-11-23 at 16:50 -0800, Darren Hart wrote:
> Are there restrictions on what the PV variable is set to?
> 
> I'd like to name the recipe I'm working on linux-linaro-2.6.35 and use 
> PR and the git AUTOREV to define the PV value. However, when I make the 
> following change in linux-linaro-2.6.35_git.bb:
> 
> - PV = "2.6.35"
> + PV = "${PR}+git${SRCREV}"

You need a kernel version in there, kernel.bbclass adds a depends to the
kernel of:

virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')}

The get_kernelmajorversion() function in linux-kernel-base.bbclass is
failing to determine the kernel version and returning None which results
in the unbuildable dependency error you are seeing.

For further reference I'd point you at the PV's set by other git kernel
recipes:

joshual at scimitar:~/Projects/Yocto/poky/meta/recipes-kernel/linux
$ git grep PV\ =
linux-omap-zoomsync_2.6.32.bb:PV = "2.6.32.7-${OEV}"
linux-omap2_git.bb:PV = "2.6.26"
linux-omap2_git.bb:#PV = "2.6.26+2.6.27-rc1+${PR}+git${SRCREV}"
linux-omap3-pm_git.bb:PV = "2.6.31-rc7+pm+${PR}+git${SRCREV}"
linux-omap3_git.bb:PV = "2.6.27-rc6+${PR}+git${SRCREV}"
linux-yocto_git.bb:PV = "2.6.34+git${SRCPV}"

Cheers,
Joshua
-- 
Joshua Lock
        Intel Open Source Technology Centre




More information about the poky mailing list