From a2b2fe7da78378dc6a64f58c14e907496c9adea9 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Thu, 26 Aug 2021 17:30:35 +0300 Subject: Initial commit --- linux.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 linux.sh (limited to 'linux.sh') diff --git a/linux.sh b/linux.sh new file mode 100755 index 0000000..11b9fe7 --- /dev/null +++ b/linux.sh @@ -0,0 +1,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 -- cgit