[oe] Package selection

Ciprian Ciubotariu cheepeero at gmx.net
Tue Jun 19 00:32:03 UTC 2012


On Monday 18 June 2012 11:57:01 Dallas Clement wrote:
> Lastly, it is possible to avoid the repeated fetching of source
> packages?  In other words, can the source URI's point to packages in a
> local file system repository?

I have extracted some minimal code from the old OE srctree.bbclass file that 
allows us to do minimal rebuilds when developing:

S="/path/to/your/sources/"
SRC_URI=""

def remove_tasks(deltasks, d):
    for task in filter(lambda k: d.getVarFlag(k, "task"), d.keys()):
        deps = d.getVarFlag(task, "deps")
        for preptask in deltasks:
            if preptask in deps:
                deps.remove(preptask)
        d.setVarFlag(task, "deps", deps)

#addtask configure after do_setscene

python () {
    remove_tasks(["do_patch", "do_unpack", "do_fetch"], d)
}


Note that setting S there makes bitbake treat this as the work folder, so 
you'll get oe-core build artifacts there.

Also, you need to bitbake -c cleanall <your-package> to make bitbake forget it 
has already built your package, and next bitbake <your-package> to perform the 
minimal build.

> 
> Thanks much,
> 
> Dallas
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list