bitbake DEPENDS problem
Hi,
I've got the below described minimalistic bitbake setup. There are two recipes where one recipe (mySecPkg.bb) DEPENDS on the other (myPkg.bb).
According to the OpenEmbedded User Manual [1] and the Yocto Pokey Manual Section 2.3 [2] I would have expected if I run build against mySecPkg that bitbake obeys inter-package dependencies and also builds myPkg since mySecPkg DEPENDS on it. But this is not the case. Bitbake only builds mySecPkg. Is there something wrong with my assumption or setup? I would appreciate if someone could shed some light on that.
Thanks in advance for any assistance provided!
$ env -i PATH=$PATH:./bitbake-1.17.0/bin bitbake -DDD mySecPkg ... DEBUG: providers for myPkg are: ['myPkg'] ... DEBUG: Resolved 0 extra dependencies ... NOTE: Pruned 1 inactive tasks, 1 left
Here is the setup:
|-- bitbake
| |-- bin
| | `-- bitbake
| `-- ...
|
|-- conf
| |-- bblayers.conf
| | BBPATH = "${TOPDIR}"
| | BBFILES ?= ""
| | BBLAYERS ?= "meta"
| |
| `-- local.conf
| BB_NUMBER_THREADS = "2"
| PARALLEL_MAKE = "-j 2"
|
`-- meta
|-- conf
| |-- layer.conf
| | BBPATH := "${LAYERDIR}:${BBPATH}"
| | BBFILES := "${BBFILES} ${LAYERDIR}/recipes/*.bb"
| |
| `-- bitbake.conf
| ...
| require local.conf
|
|-- classes
| |-- base.bbclass
| | bbnote() {
| | echo "NOTE:" "$*"
| | }
| |
| | addtask build
| | do_build[dirs] = "${TOPDIR}"
| | #do_build[nostamp] = "1"
| | python base_do_build () {
| | bb.note("The included,...")
| | }
| |
| | EXPORT_FUNCTIONS do_build
| |
| `-- myBaseClass.bbclass
| addtask do_build
| do_build() {
| bbnote "*** myBaseClass::do_build()"
| }
|
`-- recipes
|-- myPkg_0.1.bb
| PN = "myPkg"
| PV = "0.1"
|
| inherit myBaseClass
|
| do_build() {
| bbnote "*** myPkg::do_build()"
| }
|
`-- mySecPkg_0.1.bb
PN = "mySecPkg"
PV = "0.1"
DEPENDS = "myPkg"
inherit myBaseClass
do_build() {
bbnote "*** mySecPkg::do_build()"
return 0
}[1] http://docs.openembedded.org/usermanual/usermanual.html
[2] http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html
Regards
HH
Quoted 13 lines · On Thu, 2013-01-17 at 19:50 +0100, [email protected] wrote:
Hi,
I've got the below described minimalistic bitbake setup. There are two recipes where one recipe (mySecPkg.bb) DEPENDS on the other (myPkg.bb).
According to the OpenEmbedded User Manual [1] and the Yocto Pokey Manual Section 2.3 [2] I would have expected if I run build against mySecPkg that bitbake obeys inter-package dependencies and also builds myPkg since mySecPkg DEPENDS on it.
But this is not the case. Bitbake only builds mySecPkg. Is there something wrong with my assumption or setup? I would appreciate if someone could shed some light on that.
Quoted 1 line
Thanks in advance for any assistance provided!
You've not added any information about what DEPENDS means. Try adding something like:
do_build[deptask] = "do_build"
to myBaseClass.bbclass which will then cause it to look at DEPENDS for the do_build task.
Cheers,
Richard