Interesting problem when using SRCREV...
James Mills
jmills at avionpartners.com
Wed Jun 25 19:46:57 UTC 2008
Hello all.
I have recently moved to the OE "stable" tree and bitbake 1.8.8. I
use bitbake/OE to generate packages within my company that live on top
of OE platforms. I made this move primarily to take advantage of the
new SRCREV implementation. Basically, I have a top level package that
depends on all the needed packages to form the software we have
developed, and I want to be able to call:
bitbake TOP-LEVEL-PACKAGE
and have everything that has changed rebuild itself.
So, to that end, I built a test package that *should* update everytime
I call "bitbake test", assuming something in the tree has changed.
However, I am actually seeing that the "bitbake test" command will
only rebuild after I have "touched" the bb file, through editing or
using the "touch" command on the file. I notice when running with
"-D", I can see the test_1.0.0.bb file getting removed from the cache
if I have touched or edited it. Otherwise I do not see this message.
Here is my sample bb file. Hopefully someone can spot the problem.
I'd rather not have to ensure all bb's I want to build get "touched"
first! :)
==========================
DEFAULT_PREFERENCE = 1
SRCREV = ${@bb.fetch.get_srcrev(d)}
PR=${SRCREV}
BB_SRCREV_POLICY = "clear"
DESCRIPTION = "Test Package"
SECTION = "devel/pxa"
PRIORITY = "optional"
LICENSE = "GPL"
SRC_URI = "svn://svn.afakesite.fake/svn/research/src/;module=trunk;proto=https \
"
do_install() {
install -m 0755 -d ${D}/tmp
}
==========================
My SRC_URI has also had "srcdate=now" in it, with the same results.
Thanks!
James Mills
More information about the Openembedded-users
mailing list