Skip to content

Commit d7d0752

Browse files
veggiemiketonyhutter
authored andcommitted
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 <[email protected]>
1 parent 3fdfb85 commit d7d0752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

copy-builtin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ for MODULE in "${MODULES[@]}"
4242
do
4343
sed -i '/obj =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
4444
sed -i '/src =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
45+
sed -i "s|-I$PWD/module/|-I\$(srctree)/fs/zfs/|" "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
4546
done
4647

4748
cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF"

0 commit comments

Comments
 (0)