[yocto] Fixing devtool issue with kernel bbhappen do_patch recipe

Yann CARDAILLAC yann.cardaillac at smile.fr
Thu Feb 14 03:01:02 PST 2019


Hi,

A colleague gave a first look to my patch, and gave me advice about how to
improve it.

Here's a new version.

Regards,

On Mon, Feb 11, 2019 at 9:35 AM Yann CARDAILLAC <yann.cardaillac at smile.fr>
wrote:

> Hi,
>
> If you need more details about how to reproduce just ask, or if that's not
> the correct mailing list, I'll be happy to post my message wherever it
> belongs.
>
> Regards,
>
> Yann
>
> On Mon, Jan 28, 2019 at 1:26 PM Yann CARDAILLAC <yann.cardaillac at smile.fr>
> wrote:
>
>> Hi all,
>>
>> We found a possible bug with boucman_work as mentionned in the IRC.
>>
>> It seems that when using the SDK there's an issue with the generated file
>> workspace/appends/linux-yocto_4.18.bbappend (or equivalent depending on
>> kernel and distro).
>>
>> In the do_patch rule, if some script are intended to be applied in
>> another language than python it will fail. I had the case with my BSP
>> (phytec). We had to change the rule with :
>>
>> do_patch[noexec] = "1"
>>
>> so that the rule is not executed which was what was probably intended
>> with the former :
>>
>> do_patch() {
>>     :
>> }
>>
>> Here's the patch we would use to fix that. It patch the scipt
>> scripts/lib/devtool/standard.py so that it properly generate the bbappend
>> file. Please, do not hesitate to give me any feedback on my patch.
>>
>> Regards,
>>
>> --
>> [image: SMILE] <http://www.smile.eu/>
>>
>> 20 rue des Jardins
>> 92600 Asnières-sur-Seine
>> *Yann CARDAILLAC*
>> Ingénieur Linux Embarqué
>>
>> [image: email] yann.cardaillac at smile.fr
>> [image: url] http://www.smile.eu
>>
>> [image: Twitter] <https://twitter.com/GroupeSmile> [image: Facebook]
>> <https://www.facebook.com/smileopensource> [image: LinkedIn]
>> <https://www.linkedin.com/company/smile> [image: Github]
>> <https://github.com/Smile-SA>
>>
>>
>> [image: eco] Pour la planète, n'imprimez ce mail que si c'est nécessaire
>>
>
>
> --
> [image: SMILE] <http://www.smile.eu/>
>
> 20 rue des Jardins
> 92600 Asnières-sur-Seine
> *Yann CARDAILLAC*
> Ingénieur Linux Embarqué
>
> [image: email] yann.cardaillac at smile.fr
> [image: url] http://www.smile.eu
>
> [image: Twitter] <https://twitter.com/GroupeSmile> [image: Facebook]
> <https://www.facebook.com/smileopensource> [image: LinkedIn]
> <https://www.linkedin.com/company/smile> [image: Github]
> <https://github.com/Smile-SA>
>
>
> [image: eco] Pour la planète, n'imprimez ce mail que si c'est nécessaire
>


-- 
[image: SMILE] <http://www.smile.eu/>

20 rue des Jardins
92600 Asnières-sur-Seine
*Yann CARDAILLAC*
Ingénieur Linux Embarqué

[image: email] yann.cardaillac at smile.fr
[image: url] http://www.smile.eu

[image: Twitter] <https://twitter.com/GroupeSmile> [image: Facebook]
<https://www.facebook.com/smileopensource> [image: LinkedIn]
<https://www.linkedin.com/company/smile> [image: Github]
<https://github.com/Smile-SA>


[image: eco] Pour la planète, n'imprimez ce mail que si c'est nécessaire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190214/4eff37b3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-correct-do_patch-for-kernel-bbappend-for-sdk.patch
Type: text/x-patch
Size: 1511 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190214/4eff37b3/attachment-0001.bin>


More information about the yocto mailing list