jgauthier Posted July 28, 2020 Posted July 28, 2020 Greetings, I'm attempting to apply a custom patch during the build process for a bananapi-m2-zero. (specifically, DTS changes) I went into the kernel source, and created a diff, and put it in the user customized patches directory. Unfortunately, the patch failed. So, I dug into it, and discovered the source changes because of patches in the armbian patches/ directory. So, instead I started the build, let these patches apply,, and aborted the build. Then I created the diff again. Sadly, the patch is still being rejected. Now, I might be able to fight with this, and make it work. But the next time I pull a new update it could be broken and I have to go through this again. So, is there any way I can make this work?
Werner Posted July 29, 2020 Posted July 29, 2020 How did you make the custom patch? Did you use the CREATE_PATCHES flag?
jgauthier Posted July 30, 2020 Author Posted July 30, 2020 On 7/29/2020 at 2:01 AM, Werner said: How did you make the custom patch? Did you use the CREATE_PATCHES flag? Well, I took the original source code, from the linux kernel tree. I modified it, and then created the diff. That did not work, so I built armbian, and let all the patches do their things. Then I took the fully patched file (from the build) made my chanbges, and created a diff. I put that diff in userpatches. I was able to get this to work by forcing it to patch last, by prefixing the file name with 'zzz'. I wasn't aware of CREATE_PATCHES, but that is great. I will try that
jgauthier Posted July 30, 2020 Author Posted July 30, 2020 CREATE_PATCHES worked great. I wish I hadn't missed that before, but it will streamline this for future builds!
Recommended Posts