6e48dedeb8
This commit allows for binary content in patches created via 'make update-patches'. Binary patches are needed for BDFs required for al boards on the new ipq40xx target. Before this commit, binaries were omitted from the generated patch which resulted in the patch not able to apply. Patches without binary content do not differ in case they are created with the '--binary' flag.
25 lines
594 B
Bash
Executable File
25 lines
594 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
shopt -s nullglob
|
|
|
|
. scripts/modules.sh
|
|
|
|
|
|
GLUONDIR="$(pwd)"
|
|
|
|
for module in $GLUON_MODULES; do
|
|
echo "--- Updating patches for module '$module' ---"
|
|
|
|
rm -rf "$GLUONDIR"/patches/"$module"
|
|
|
|
cd "$GLUONDIR"/"$module"
|
|
|
|
n=0
|
|
for commit in $(git rev-list --reverse --no-merges base..patched); do
|
|
let n=n+1
|
|
mkdir -p "$GLUONDIR"/patches/"$module"
|
|
git -c core.abbrev=40 show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' --no-renames --binary "$commit" > "$GLUONDIR/patches/$module/$(printf '%04u' $n)-$(git show -s --pretty=format:%f "$commit").patch"
|
|
done
|
|
done
|