Files
LibreELEC.tv/tools/RPi/rpi-linux-rebase.sh
2017-07-14 21:30:56 +01:00

33 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# Setup:
# git clone -b rpi-4.4.y --depth=1000 --single-branch git@github.com:raspberrypi/linux.git raspberrypi-linux
# git remote add -t linux-4.4.y linux-stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
# git config --local core.abbrev 40
# Update:
# git fetch --all --depth=1000
# git reset --hard origin/rpi-4.4.y
# GIT_SEQUENCE_EDITOR=../rpi-linux-rebase.sh git rebase -i linux-stable/linux-4.4.y
# git format-patch --no-signature --stdout linux-stable/linux-4.4.y > ../linux-01-RPi_support.patch
TODO=$1
# Drop commits not used
DROP_COMMITS="
Added Device IDs for August DVB-T 205
net: Add non-mainline source for rtl8192cu wlan
net: Fix rtl8192cu build errors on other platforms
ARM64: Fix build break for RTL8187\/RTL8192CU wifi
fixup: rtl8192cu fixes from milhouse
rtl8192: Fixup build
rtl8192: switch to netdev->priv_destructor()
"
IFS=$'\n'
for COMMIT in $DROP_COMMITS; do
sed -i -E "s/^pick ([0-9a-f]+) (${COMMIT}.*)/drop \1 \2/g" $TODO
done
grep -E "^drop " $TODO > /tmp/dropped
sed -i -E "/^drop /d" $TODO