OpenNetworkLinux icon indicating copy to clipboard operation
OpenNetworkLinux copied to clipboard

How to perform a private patch to kernel

Open tsihang opened this issue 5 years ago • 1 comments

Hi, How to perform a private patch to kernel ?

I find clues of $ONL/packages/base/any/kernels/4.14-lts/patches/ . I added my own patch to this directory and modified $ONL/packages/base/any/kernels/4.14-lts/patches/series, adding the name of the new private patch. After that I rebuild ONL from very begining, while it failed. Am I right ? Can anyone help me with it ?

Thanks.

tsihang avatar Jun 18 '20 01:06 tsihang

  1. You need to put your patch in the path /packages/base/any/kernels/x.xxx-lts/patches/.
  2. In the packages /base/any/kernels/x.xxx-lts/patches/series file, add your patch name. Pay attention to adding positions. The positions represent the order of patching, and the ones written in front will be typed first.

Trumanzx avatar Nov 17 '20 03:11 Trumanzx