[poky] linux recipe PV requirements
Darren Hart
dvhart at linux.intel.com
Wed Nov 24 09:09:32 PST 2010
On 11/24/2010 03:42 AM, Joshua Lock wrote:
> 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}')}
Thanks Josh,
This is the sort of dependency I was looking for. Knowing this, I
suppose the best thing to do is rename linux-linaro-2.6.35_git to
linux-linaro-stable_git. I don't particularly care for this approach as
"stable" is sure to change to a different version in the future - but
then again, perhaps this is inline with Poky's goals of having a single
known-good version of a package.
I'll work on updating this upon my return.
Thanks again for the info! While I can find things like the above, I'm
not yet confident enough to affirmatively attribute them to the failures
I was seeing.
--
Darren
>
> 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
--
Darren Hart
Yocto Linux Kernel
More information about the poky
mailing list