[yocto] Fixing devtool issue with kernel bbhappen do_patch recipe

Yann CARDAILLAC yann.cardaillac at smile.fr
Mon Jan 28 04:26:05 PST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190128/9f099f76/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-correct-do_patch-for-kernel-bbappend-in-sdk.patch
Type: text/x-patch
Size: 1170 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190128/9f099f76/attachment.bin>


More information about the yocto mailing list