From eb44c06918f1ccc7f2ad01cc807be98bc6ba5587 Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Wed, 28 May 2014 13:48:55 -0500 Subject: [PATCH] kpatch-build: better error message for struct def change Fixes #109. --- kpatch-build/kpatch-build | 1 + 1 file changed, 1 insertion(+) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 6d1f5bb..dcfc7d1 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -257,6 +257,7 @@ make "-j$CPUS" vmlinux "O=$OBJDIR" 2>&1 | tee -a "$TEMPDIR/patched_build.log" >> echo "Detecting changed objects" grep CC "$TEMPDIR/patched_build.log" | grep -v -e init/version.o -e scripts/mod/devicetable-offsets.s -e scripts/mod/file2alias.o | awk '{print $2}' > "$TEMPDIR/changed_objs" [[ ! -s "$TEMPDIR/changed_objs" ]] && die "no changed objects were detected" +grep -q asm-offsets.s $TEMPDIR/changed_objs && die "a struct definition change was detected" echo "Rebuilding changed objects" rm -rf "$OBJDIR2"