fix calling of kpatch-build from git dir

When calling kpatch-build from the git directory, the patch kmod build
fails because it can't find kpatch.h because the symlink is broken.
Copy the kpatch.h file (instead of the symlink) to TEMPDIR.
This commit is contained in:
Josh Poimboeuf 2014-02-18 11:08:15 -06:00
parent 06ed1bdcc0
commit 052f2d8b25

View File

@ -109,7 +109,7 @@ fi
find_data_dir || (echo "can't find data dir" >&2 && die)
cp -R "$DATADIR/patch" "$TEMPDIR" || die
cp -LR "$DATADIR/patch" "$TEMPDIR" || die
cp vmlinux "$TEMPDIR" || die
echo "Building patched kernel"