copy-builtin: make sure kernel Makefiles don't look in zfs source tree

The icp Makefile was referencing absolute paths to the zfs source tree for
include files.  The result was that even though the headers get added to
the Linux kernel tree, building fails if you move/remove the zfs checkout.

Signed-off-by: Michael D Labriola <michael.d.labriola@gmail.com>
This commit is contained in:
Michael D Labriola 2020-10-20 13:56:23 -07:00 committed by Tony Hutter
parent 3fdfb85850
commit d7d0752a18
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ for MODULE in "${MODULES[@]}"
do do
sed -i '/obj =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile" sed -i '/obj =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
sed -i '/src =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile" sed -i '/src =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
sed -i "s|-I$PWD/module/|-I\$(srctree)/fs/zfs/|" "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
done done
cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF" cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF"