I want to add additional kernel patches to those located in target/linux/.../patches-6.1 using own kernel src
Currently, the compilation process with 'make target/compile' looks roughly like this:
- Downloading the required kernel version from include/kernel-6.1.
- Unpacking.
- Applying patches from the corresponding target.
I know how to manually add a specific patch, but I need to create several patches. I would like to have a Git repository with the kernel source code, make the necessary changes, and then generate patch files based on the commits.
Here is my plan: Instead of steps 1 and 2, I manually perform the following:
- I have the required kernel version to which I apply all patches using 'git am <patch' related to my target. I add new changes directly to the source tree of my kernel.
- The compilation process then follows the standard path, using the configuration settings for the kernel specified in target/linux/.
Simply including an external kernel tree through the OpenWrt .config skips the patch application stage and the use of configurations from my target.
I plan to apply the patches myself, but I want to use the configurations provided for my target.
Can you please advise briefly on how to do this correctly?