From: Darren Hart <dvhart@linux.intel.com>
To: Joshua Lock <josh@openedhand.com>
Cc: poky@yoctoproject.org
Subject: Re: linux recipe PV requirements
Date: Wed, 24 Nov 2010 09:09:32 -0800 [thread overview]
Message-ID: <4CED46CC.5070103@linux.intel.com> (raw)
In-Reply-To: <1290598927.2799.14.camel@scimitar>
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@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
prev parent reply other threads:[~2010-11-24 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 0:50 linux recipe PV requirements Darren Hart
2010-11-24 11:42 ` Joshua Lock
2010-11-24 17:09 ` Darren Hart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CED46CC.5070103@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=josh@openedhand.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.