Jump to content

kernel source modification & build without doing kernel-patch process


Recommended Posts

Hi there, trying to iterate on making small changes to a kernel driver module, and using armbian to help build the kernel (cross-compiling off the device).

I'm aware of kernel-patch mode, but for making small changes, compiling, and iterating like this over and over, making and then putting patches into place on each cycle is quite cumbersome.
Is there some way to tell armbian build _not_ to update the kernel, i.e. let me build with dirty tree, as I'm in a dev cycle?

 

I just want to edit something in my local kernel tree, then build the kernel, and repeat
 

Edited by Jens Jensen
Link to comment
Share on other sites

  • Jens J. changed the title to kernel source modification & build without doing kernel-patch process

@Andrea @Jens J. Currently, the build system is not designed for the development process

and does not have convenient tools for this.

 

Alternatively, you can copy the entire kernel tree after patches have been applied and changes

have been made to it in other non-traditional ways.

Stopping the compilation process as soon as it has started.

The build system deletes some files and replaces them by copying its own or simply copies its own files.


In this copy of the tree, make a commit of the git with the addition of all unindexed files.

Next, you make your changes and commit them. Extract the changes as a patch and place it in custom patches.

 

This method avoids many time-consuming processes, but has one drawback.

The process of applying patches using the python script is accompanied by dividing large patches into

separate pieces and applying them separately.

At the same time, some pieces can be applied with displacement and diffusion in one line.

Thus, the changes end up in another function.
Externally, it looks as if all the patches were applied without errors.

Let's assume that you found this bug and made your own patch of fixes.
 But after a while, the patch author may make corrections and your custom patches will need to be redone.

 

Thank you for your attention.

Link to comment
Share on other sites

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