[oe] Package selection

j vwyodapink at gmail.com
Tue Jun 19 04:34:10 UTC 2012


On 06/18/2012 05:32 PM, Ciprian Ciubotariu wrote:
> 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

Isnt bitbake -c cleansstate <your-package> a better method of cleaning a 
build you want to do again?

If not does anyone know what the actual difference is?
> 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
> _______________________________________________
> 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