To do that I’m going to add KBUILD_VERBOSE=1 and then build it. It should output all .c files it needs, and I should be able to just delete the other .c files
Then I’ll probably go through the .c files and get all the .h files needed by it. Those .h files might be dependent on other .h files, so I’ll prob have to recursively iterate that. I’ll prob ignore <> since that’ll be included with -I? idk
In the end I should have a minimal kernel? Need to test this theory
I’m having a lot of fun :D