mirror of
https://github.com/dynup/kpatch
synced 2025-05-10 20:07:56 +00:00
kpatch-build: add patch compile failure output to log
If the patch doesn't compile, make sure the LOGFILE has the error output.
This commit is contained in:
parent
c83141be90
commit
2aef7d7c41
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user