summaryrefslogtreecommitdiff
path: root/linux.sh
blob: 11b9fe7a40e97286b32c453ab38dc2dfbef2bbd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -e

ver=5.13

DIR="$(realpath $(dirname "$BASH_SOURCE"))"
cd "$DIR"

rm -rf "incoming-$ver"
mkdir "incoming-$ver"

(
	cd "$HOME/sw/linux"
	base="$(git merge-base "linux-stable/linux-$ver.y" "raspberrypi/rpi-$ver.y")"
	git format-patch -o "$DIR/incoming-$ver" "$base".."raspberrypi/rpi-$ver.y"
	git diff "$base".."linux-stable/linux-$ver.y" > "$DIR/stable-$ver.patch"
)

python3 import_series.py "rpi-$ver" "incoming-$ver"

python3 export_series.py "rpi-$ver" "stable-$ver.patch" "prb-$ver.patch" > "rpi-$ver.patch"
cp "rpi-$ver.patch" ~/sw/fedora/hvenev-kernel/patches/9000-rpi.patch