[yocto] using git am to apply git patch in the workdir of any package+

Alexander Kanavin alex.kanavin at gmail.com
Wed Mar 6 07:36:49 PST 2019


The supported recommended workflow for this things is with devtool.

Please try especially 'devtool modify' and 'devtool upgrade'. The latter
will rebase patches for you, regardless of how they were made.

Alex

On Wed, 6 Mar 2019 at 15:18, Pandey, Kamal <Kamal.Pandey at ifm.com> wrote:

> Hello,
>
> I am trying to modify the src code of a package named say x,
>
> For this I type the command $bitbake x –c devshell.
>
> This leads me to the git repo of the x package(if it is a git repo).
>
> Now I do my changes, commit the changes, and create a patch out of it
> using git format-patch.
>
> Now I want this git patch to be applied via git am  whenever I run bitbake
> x.
>
> In some packages the patch is applied via git am for example
> linux-yocto-%.bb, but in some cases the patch is not being applied via git
> am for example u-boot%.bb
>
> Is there any setting in bitbake to apply git patches via git am so that it
> is easy to modify the older patches via rebase commands, or we have to
> create new patch every time for a small change and the later patches will
> have dependency on older patches.
>
>
>
>
>
> Best Regards
>
> Kamal Pandey
>
> Junior Software Engineer
>
> [image: ifm_logo_sqrs]ifm engineering pvt. ltd.
>
> Survey No. 1/10/16, 3rd floor, Above SBI, Bavdhan Branch, N.D.A. Road,
> Bavdhan, Pune, India - 411021 | Web: www.ifm.com | Phone: +91-20-22951910
> Extn:215 | CIN: U29213PN2010FTC13676
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190306/4e5b09d1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1601 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190306/4e5b09d1/attachment.png>


More information about the yocto mailing list