Merge pull request #120 from jpoimboe/revert-115

Revert "kpatch-build: prevent die if only part of objects have no change...
This commit is contained in:
Seth Jennings 2014-04-15 11:41:51 -05:00
commit 18a583b6bf

View File

@ -248,13 +248,11 @@ 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 ]] && changed=$((changed+1))
[[ "${PIPESTATUS[0]}" -eq 0 ]] || die
done
[[ "$changed" -gt 0 ]] || die "Fatal: all generated objects has no changed function."
echo "Building patch module: kpatch-$PATCHNAME.ko"
cp "$OBJDIR/.config" "$SRCDIR"