mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
RPi: Fix linux patch generation to support non-rebased trees
-Xours keeps conflicts that are present in the rpi branch
This commit is contained in:
parent
6881674f3e
commit
dcf439b1b4
@ -74,13 +74,14 @@ fi
|
|||||||
# Apply the following config change to reduce chance of duplicate hashes
|
# Apply the following config change to reduce chance of duplicate hashes
|
||||||
git config --local core.abbrev 40
|
git config --local core.abbrev 40
|
||||||
|
|
||||||
git fetch --all --depth=${DEPTH}
|
git fetch --all --depth=${DEPTH} --no-tags
|
||||||
git reset --hard origin/rpi-${BRANCH}.y${REBASE}
|
git reset --hard origin/rpi-${BRANCH}.y${REBASE}
|
||||||
|
|
||||||
if [ -n "${BASEREV}" ]; then
|
if [ -n "${BASEREV}" ]; then
|
||||||
:
|
:
|
||||||
elif [ -z "${KERNEL}" ]; then
|
elif [ -z "${KERNEL}" ]; then
|
||||||
BASEREV="linux-stable/linux-${BRANCH}.y"
|
BASEREV="linux-stable/linux-${BRANCH}.y"
|
||||||
|
KERNEL="$(git log --grep "Linux ${BRANCH}" --pretty=oneline | head -1 | awk '{ print $NF }')"
|
||||||
else
|
else
|
||||||
BASEREV="$(git log --grep "Linux ${KERNEL}" --pretty=oneline | head -1)"
|
BASEREV="$(git log --grep "Linux ${KERNEL}" --pretty=oneline | head -1)"
|
||||||
[ -z "${BASEREV}" ] && BASEREV="$(git log --grep "Linux v${KERNEL}" --pretty=oneline | head -1)"
|
[ -z "${BASEREV}" ] && BASEREV="$(git log --grep "Linux v${KERNEL}" --pretty=oneline | head -1)"
|
||||||
@ -93,7 +94,7 @@ else
|
|||||||
BASEREV="${BASEREV%% *}"
|
BASEREV="${BASEREV%% *}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GIT_SEQUENCE_EDITOR=${BIN}/rpi-linux-rebase.sh git rebase -i ${BASEREV}
|
GIT_SEQUENCE_EDITOR=${BIN}/rpi-linux-rebase.sh git rebase -Xours -i ${BASEREV}
|
||||||
git format-patch --no-signature --stdout ${BASEREV} > /tmp/linux-01-RPi_support.patch
|
git format-patch --no-signature --stdout ${BASEREV} > /tmp/linux-01-RPi_support.patch
|
||||||
|
|
||||||
cd .. && rm -fr raspberrypi-linux
|
cd .. && rm -fr raspberrypi-linux
|
||||||
@ -103,6 +104,7 @@ cat /tmp/dropped
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Dropped patches: /tmp/dropped"
|
echo "Dropped patches: /tmp/dropped"
|
||||||
|
|
||||||
echo "New patch file : /tmp/linux-01-RPi_support.patch"
|
echo "New patch file : /tmp/linux-01-RPi_support.patch"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user