summaryrefslogtreecommitdiffstats
diff options
authorHauke <anonymous.contributor@example.org>2013-07-20 14:12:26 +0000
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2024-10-04 15:47:32 -0400
commit155871b1f8a769633d49784acc4111293349972d (patch)
tree5f42aed4ae315fab3d11825bffc2d3b4e7afc22d
parentbb6232a6c150e08132db02a5b288d86e5b364524 (diff)
downloadbackports-155871b1f8a769633d49784acc4111293349972d.tar.gz
rework adding new driver
-rw-r--r--wiki/Documentation_backports_hacking.mediawiki15
1 files changed, 12 insertions, 3 deletions
diff --git a/wiki/Documentation_backports_hacking.mediawiki b/wiki/Documentation_backports_hacking.mediawiki
index e6bb02c..0ab4870 100644
--- a/wiki/Documentation_backports_hacking.mediawiki
+++ b/wiki/Documentation_backports_hacking.mediawiki
@@ -38,9 +38,18 @@ This will take the path to the already checked out linux-next kernel as the seco
= Adding new driver =
-When adding a new driver you first have to copy it to the resulting release by adding it to the copy-list file in the root directory of backports.
-If this backported driver does not work on all supported kernel versions you have to specify it in the dependencies file.
-You should also add a new defconfig for your driver to /backport/defconfigs/
+This is a list of steps to be done when adding a new driver. Not all steps are needed for every new driver it depends on what type of driver is added. You can take the patch adding support for the ieee802154 subsystem as a reference [https://git.kernel.org/cgit/linux/kernel/git/mcgrof/backports.git/commit/?id=a42aa4d474e5859164a00bf451970fb58b676fcf].
+
+You should target the master branch of the backports repository.
+
+# Add directories and files that should be copied from the mainline kernel to <code>copy-list</code>
+# Add patches to <code>patches/collateral-evolutions/</code> if needed, it is better to add or modify a header file in <code>backport/backport-include/</code> than adding a patch.
+# Add reference to the newly added driver directory in <code>backport/Makefile.kernel</code> if needed (just needed for new substems)
+# Add reference to the newly added driver directory in <code>backport/Kconfig</code> if needed (just needed for new subsystems)
+# Add a defconfig file for this driver in <code>backport/defconfigs/</code> and modify other defconfig files if appropriate, e.g. if you add a wifi driver add it to <code>backport/defconfigs/wifi</code>
+# If the driver does not build on all kernel versions specify a minimum kernel version in <code>dependencies</code>
+
+Backports currently supports the latest minor version of every mainline kernel starting from 2.6.24. You should check that backports still builds after making your changes. To do so you should install all supported kernel with the script in <code>devel/get-compat-kernels</code> and then run <code>devel/ckmake</code> to build backports against every kernel version.
= Backporting a kernel feature =