mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 21:52:07 +00:00
Merge pull request #115 from madper/master
kpatch-build: prevent die if only part of objects have no change
This commit is contained in:
commit
e1099dbbc1
@ -248,11 +248,13 @@ cd "$TEMPDIR/orig"
|
||||
FILES="$(find * -type f)"
|
||||
cd "$TEMPDIR"
|
||||
mkdir output
|
||||
changed=0
|
||||
for i in $FILES; do
|
||||
mkdir -p "output/$(dirname $i)"
|
||||
"$TOOLSDIR"/create-diff-object "orig/$i" "patched/$i" "output/$i" 2>&1 |tee -a "$LOGFILE"
|
||||
[[ "${PIPESTATUS[0]}" -eq 0 ]] || die
|
||||
[[ "${PIPESTATUS[0]}" -eq 0 ]] && changed=$((changed+1))
|
||||
done
|
||||
[[ "$changed" -gt 0 ]] || die "Fatal: all generated objects has no changed function."
|
||||
|
||||
echo "Building patch module: kpatch-$PATCHNAME.ko"
|
||||
cp "$OBJDIR/.config" "$SRCDIR"
|
||||
|
Loading…
Reference in New Issue
Block a user