Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kernel source modification & build without doing kernel-patch process

Featured Replies

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

  • 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.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.