Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Find the recipe for the component and add a SRC_URI for the patch file. Add the below line to the recipe of the component you need to modify.

    SRC_URI += "file://<name>.patch"
    eg: SRC_URI += "file://temp.patch/"


  2. Create a folder named "files" in the same folder of recipe.


  3. Create a blank file with the same name given in the recipe.

    touch files/<name>.patch
    eg: touch files/temp.patch


  4. bitbake <recipe> -c devshell


  5. Do "quilt top" and verify if the patch file is reflected there.

    # quilt top
    patches/temp.patch


  6. quilt add "filename which you need to modify" (If multiple files are there, then add all those)

    eg: quilt add Makefile.am configure.ac


  7. Make necessary modifications required for these files.


  8. quilt refresh

  9. Verify if your modifications are reflected in the patch file.

    vi patches/<name>.patch

  10. Now replace this patch file with original one in files folder.


  11. exit


  12. Do a Clean and then build.

...