[yocto] Keeping and modifying Source code in Yocto

Simon Chamlian simon.chamlian at mpbc.ca
Wed Jul 11 08:27:34 PDT 2018


I am getting the following error using devtool:

$ devtool add help
ERROR: Layer directory '/home/jay/sources/poky/meta' does not exist! Please
check BBLAYERS in /home/jay/build/conf/bblayers.conf

$ whereis devtool
devtool: /opt/PHYTEC_BSPs/yocto_imx7/sources/poky/scripts/devtool

The paths are completely wrong.

Any hints?

Thanks,
S






On Tue, Jul 10, 2018 at 4:27 AM, ChenQi <Qi.Chen at windriver.com> wrote:

> On 07/10/2018 02:18 PM, Paul Eggleton wrote:
>
>> 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
>>
>> Thanks Paul. I'll turn to use devtool.
>
> Best Regards,
>
> Chen Qi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180711/1462dfdb/attachment-0001.html>


More information about the yocto mailing list