Skip to contentSkip to conversation

Best practice: Howto update/modify a patch?

DISCUSSION H. Wulff 2 participants 2 messages Jan 8

lore
Share & tools
lore

H. Wulff

author
#0 lore raw

Hi!

From time to time I get in the situation to update/modify an existing patch. When I use devtool, the old patches will be applied, and results in an additional patch. The newly created patch modifies the same code area(s) as the old patch(es). OK.

So, I wonder whether there exists best practice to update/modify an existing patch?

Thanks for any hints.

BR,
H. Wulff

#1 lore raw
Quoted 3 lines · H. Wulff via lists.yoctoproject.org

From time to time I get in the situation to update/modify an existing patch. When I use devtool, the old patches will be applied, and results in an additional patch. The newly created patch modifies the same code area(s) as the old patch(es). OK.

So, I wonder whether there exists best practice to update/modify an existing patch?

You need to run 'git rebase -i' to rearrange/squash patches as needed inside the component's source tree in devtool's workspace. Then 'devtool finish' will figure out what needs to be replaced/modified/removed/added in the layer.

Alex