Skip to content

Commit 7bd1508

Browse files
committed
Improve maintainer guideline on Linux updates
1 parent cf063ad commit 7bd1508

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

maintainers.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,33 @@
22

33
## How to update the Linux kernel?
44

5+
# Last point before out patches.
56
last_mainline_revision=v4.14
67
next_mainline_revision=v4.15
78
cd linux
9+
10+
# Create a branch before the rebase.
11+
git branch "lkmc-${last_mainline_revision}"
12+
git remote set-url origin [email protected]:cirosantilli/linux.git
13+
git push
14+
815
git remote add up git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
916
git fetch up
1017
git rebase --onto "$next_mainline_revision" "$last_mainline_revision"
1118
./build -t linux-reconfigure
19+
# Manually fix our kernel modules if necessary.
1220

13-
Create and push a tag to make things saner:
14-
15-
git checkout -b "lkmc-${next_mainline_revision}"
16-
git remote set-url origin [email protected]:cirosantilli/linux.git
17-
git push --follow-tag
21+
cd ..
22+
git branch "buildroot-2017.08-linux-${last_mainline_revision}"
23+
git add .
24+
git commit -m "Linux ${next_mainline_revision}"
25+
git push
1826

1927
and update the README!
2028

21-
Now, all you kernel modules may break, although they are usually trivial breaks of things moving around headers or to sub-structs.
29+
During update all you kernel modules may break since the kernel API is not stable.
30+
31+
They are usually trivial breaks of things moving around headers or to sub-structs.
2232

2333
The userland, however, should simply not break, as Linus enforces strict backwards compatibility of userland interfaces.
2434

0 commit comments

Comments
 (0)