You are not logged in.

#1 2020-11-16 22:11:43

gearhead
Member
Registered: 2018-03-24
Posts: 31

How to generate a diff patch to the .config file?

I am building a kernel and want to add a module at the same time. I have the module code and have staged it in the kernel source and generated a patch:
git diff HEAD > 0001-my-diff.patch

now when I build the kernel, it fails because there is no instruction to build the module. I have added it to the .config file, but the patch does not capture that.

How do I get the edits to .config in the patch?

TIA

Offline

#2 2020-11-16 22:28:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,638
Website

Re: How to generate a diff patch to the .config file?

Is the .config tracked - is it listed in `git ls-files`?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB