Jump to content

Custom patching fails


jgauthier

Recommended Posts

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?   

 

 

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines