Make patch generation deterministic

This commit is contained in:
Matthias Schiffer 2013-12-28 17:17:02 +01:00
parent 1cc0948597
commit a6ae2786f3
2 changed files with 7 additions and 13 deletions

View File

@ -1,12 +1,6 @@
From e541a190d4f54d35043a804f42af746793181405 Mon Sep 17 00:00:00 2001
Message-Id: <e541a190d4f54d35043a804f42af746793181405.1388240789.git.mschiffer@universe-factory.net>
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Fri, 27 Dec 2013 18:48:19 +0100
Subject: [PATCH] Make Unifi images flashable
---
target/linux/ar71xx/image/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Subject: Make Unifi images flashable
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 9ebe486..8e82f7f 100644
@ -23,6 +17,3 @@ index 9ebe486..8e82f7f 100644
$(eval $(call SingleProfile,WHRHPG300N,$(fs_64k),WHRG301N,whr-g301n,WHR-G301N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-G301N))
$(eval $(call SingleProfile,WHRHPG300N,$(fs_64k),WHRHPG300N,whr-hp-g300n,WHR-HP-G300N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-HP-G300N))
--
1.8.5.2

View File

@ -7,9 +7,12 @@ shopt -s nullglob
for module in $GLUON_MODULES; do
dir="$1"/$module
git -C "$dir" checkout patched
rm -f "$1"/patches/$module/*.patch
mkdir -p "$1"/patches/$module
git -C "$dir" format-patch -o "$1"/patches/$module base
n=0
for commit in $(git -C "$dir" rev-list --reverse --no-merges base..patched); do
let n=n+1
git -C "$dir" show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' $commit > "$1"/patches/$module/"$(printf '%04u' $n)-$(git -C "$dir" show -s --pretty=format:%f).patch"
done
done