linux recipe PV requirements
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
Signature · 2 lines
Darren Hart Yocto Linux Kernel
Quoted 8 lines · Darren Hart
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
Signature · 2 lines
Joshua Lock
Intel Open Source Technology CentreQuoted 7 lines · Joshua Lock
Quoted 6 lines · Darren Hart
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:
Quoted 7 lines
Quoted 2 lines
- 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
Quoted 19 lines
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
Signature · 2 lines
Darren Hart Yocto Linux Kernel