mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
Maintainers how to update linux kernel
This commit is contained in:
@@ -1,5 +1,30 @@
|
|||||||
# Maintainers
|
# Maintainers
|
||||||
|
|
||||||
|
## How to update the Linux kernel?
|
||||||
|
|
||||||
|
If you don't care about educational patches:
|
||||||
|
|
||||||
|
cd linux
|
||||||
|
git fetch
|
||||||
|
git checkout master
|
||||||
|
|
||||||
|
If you do:
|
||||||
|
|
||||||
|
last_mainline_revision=v4.14
|
||||||
|
git rebase --onto master $last_mainline_revision
|
||||||
|
|
||||||
|
Then rebuild the kernel:
|
||||||
|
|
||||||
|
./build -t linux-reconfigure
|
||||||
|
|
||||||
|
Now, all you kernel modules may break, although they are usually trivial breaks of things moving around headers or to sub-structs.
|
||||||
|
|
||||||
|
The userland, however, should simply not break, as Linus enforces strict backwards compatibility of userland interfaces.
|
||||||
|
|
||||||
|
This backwards compatibility is just awesome, it makes getting and running the latest master painless.
|
||||||
|
|
||||||
|
This also makes this repo the perfect setup to develop the Linux kernel.
|
||||||
|
|
||||||
## How to add new Buildroot options?
|
## How to add new Buildroot options?
|
||||||
|
|
||||||
cd buildroot/output.x86_64~
|
cd buildroot/output.x86_64~
|
||||||
|
|||||||
Reference in New Issue
Block a user