Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| docs:guide-developer:toolchain:use-patches-with-buildsystem [2021/10/15 13:03] – formatting vgaetera | docs:guide-developer:toolchain:use-patches-with-buildsystem [2022/07/24 19:31] (current) – [Adding a new patch] mention importing an upstream patch darksky2 | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| </ | </ | ||
| - | Create | + | At this point, we can either import an upstream patch or we can create |
| + | As an aside, both github and gitlab offer the ability to easily create a patch from a given commit in their respective web interfaces. | ||
| - | <code bash> | + | To import a patch, download it to a temp directory, and give it a name according to these guidelines: |
| - | quilt new 010-main_code_fix.patch | + | |
| - | </ | + | |
| * The name should start with a number, followed by a hyphen and a very short description of what is changed | * The name should start with a number, followed by a hyphen and a very short description of what is changed | ||
| * The chosen number should be higher than any existing patch - use //quilt series// to see the list of patches | * The chosen number should be higher than any existing patch - use //quilt series// to see the list of patches | ||
| * The patch file name should be short but descriptive | * The patch file name should be short but descriptive | ||
| + | |||
| + | <code bash> | ||
| + | quilt import / | ||
| + | </ | ||
| + | |||
| + | To simply create a new, empty patch file without importing an existing one: | ||
| + | |||
| + | <code bash> | ||
| + | quilt new 010-main_code_fix.patch | ||
| + | </ | ||
| After creating the empty patch, files to edit must be associated with it. | After creating the empty patch, files to edit must be associated with it. | ||