Merge pull request #61 from jpoimboe/patch-compile-fail-log

kpatch-build: add patch compile failure output to log
This commit is contained in:
Seth Jennings 2014-03-14 17:14:33 -05:00
commit 5e5f3a76f9
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ cp "$OBJDIR/vmlinux" "$TEMPDIR" || die
echo "Building patched kernel"
patch -p1 < "$APPLIEDPATCHFILE" >> "$LOGFILE" 2>&1 || die
make "-j$CPUS" vmlinux "O=$OBJDIR" > "$TEMPDIR/patched_build.log" 2>&1 || die
make "-j$CPUS" vmlinux "O=$OBJDIR" 2>&1 | tee -a "$TEMPDIR/patched_build.log" >> "$LOGFILE"
[[ "${PIPESTATUS[0]}" -eq 0 ]] || die
echo "Detecting changed objects"
grep CC "$TEMPDIR/patched_build.log" | grep -v init/version.o | awk '{print $2}' > "$TEMPDIR/changed_objs"