All of lore.kernel.org
 help / color / mirror / Atom feed
* linux recipe PV requirements
@ 2010-11-24  0:50 Darren Hart
  2010-11-24 11:42 ` Joshua Lock
  0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2010-11-24  0:50 UTC (permalink / raw)
  To: poky@yoctoproject.org; +Cc: Saul Wold

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}"


I get the following failure:

$ bitbake linux-linaro-2.6.35
NOTE: Handling BitBake files: - (0788/0788) [100 %]
Parsing of 788 .bb files complete (748 cached, 40 parsed). 935 targets, 
48 skipped, 0 masked, 0 errors.

OE Build Configuration:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "master"
METADATA_REVISION = "94b1fda09671b58aafb54983e4a6e499f6ffc369"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "beagleboard-linaro"
DISTRO            = "poky"
DISTRO_VERSION    = "0.9+snapshot-20101124"
TARGET_FPU        = "soft"


NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/arm-poky-linux-gnueabi-depmod-None'
ERROR: Required build target 'linux-linaro-2.6.35' has no buildable 
providers.
Missing or unbuildable dependency chain was: ['linux-linaro-2.6.35', 
'virtual/arm-poky-linux-gnueabi-depmod-None']
Command execution failed: Traceback (most recent call last):
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/command.py", 
line 88, in runAsyncCommand
     commandmethod(self.cmds_async, self, options)
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/command.py", 
line 184, in buildTargets
     command.cooker.buildTargets(pkgs_to_build, task)
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/cooker.py", 
line 757, in buildTargets
     taskdata.add_unresolved(localdata, self.status)
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/taskdata.py", 
line 535, in add_unresolved
     self.remove_buildtarget(targetid)
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/taskdata.py", 
line 492, in remove_buildtarget
     self.fail_fnid(fnid, missing_list)
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/taskdata.py", 
line 472, in fail_fnid
     self.remove_buildtarget(target, missing_list)
   File 
"/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/taskdata.py", 
line 502, in remove_buildtarget
     raise bb.providers.NoProvider(target)
NoProvider: linux-linaro-2.6.35


-- 
Darren Hart
Yocto Linux Kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux recipe PV requirements
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Lock @ 2010-11-24 11:42 UTC (permalink / raw)
  To: poky

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@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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux recipe PV requirements
  2010-11-24 11:42 ` Joshua Lock
@ 2010-11-24 17:09   ` Darren Hart
  0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2010-11-24 17:09 UTC (permalink / raw)
  To: Joshua Lock; +Cc: poky

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-24 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.