* bitbake DEPENDS problem
@ 2013-01-17 18:50 hallerHarry
2013-01-18 12:00 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: hallerHarry @ 2013-01-17 18:50 UTC (permalink / raw)
To: bitbake-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bitbake DEPENDS problem
2013-01-17 18:50 bitbake DEPENDS problem hallerHarry
@ 2013-01-18 12:00 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2013-01-18 12:00 UTC (permalink / raw)
To: hallerHarry; +Cc: bitbake-devel
On Thu, 2013-01-17 at 19:50 +0100, hallerHarry@gmx.de 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.
>
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-18 12:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 18:50 bitbake DEPENDS problem hallerHarry
2013-01-18 12:00 ` Richard Purdie
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.