[yocto] Keeping and modifying Source code in Yocto
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Jul 9 23:18:27 PDT 2018
On Tuesday, 10 July 2018 3:32:56 AM CEST ChenQi wrote:
> I usually use the following steps when I need to modify source for some
> purpose.
>
> 1. bitbake A (or at least bitbake A -c configure)
> *2. cd tmp/work/xxxxx/A/<source dir>**
> **3. make the modification*
> 4. bitbake A -c compile -f
> 5. bitbake A
>
> If you find the modification useful, make a patch from it.
This is the old way of doing it which can under some circumstances result in
you losing your changes to the source tree, since the sources under tmp/work/
are only ever intended to be there temporarily. Devtool (as recommend by
others on this thread) is designed to enable this workflow in a much safer
manner.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list