mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
40 lines
981 B
Markdown
40 lines
981 B
Markdown
# 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?
|
|
|
|
cd buildroot/output.x86_64~
|
|
make menuconfig
|
|
|
|
Hit `/` and search for the settings.
|
|
|
|
Save and quit.
|
|
|
|
diff .config.olg .config
|
|
|
|
Copy and paste the diff additions to `buildroot_config_fragment`.
|