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.pan...@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@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto