From d8ac2b39c93f4e6b2bf2dad6ac6ce581a71ac45d Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 1 Dec 2015 18:24:40 -0800 Subject: [PATCH] Fix --enable-linux-builtin Adding VPATH support, commit 47a4a6f, required that a `src` and `obj` line be added to the top of the Makefiles. They must be removed from the Makefiles when builtin. Signed-off-by: Brian Behlendorf Issue zfsonlinux/spl#481 Issue zfsonlinux/spl#498 --- copy-builtin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copy-builtin b/copy-builtin index fbe20dda5f..762a34f9db 100755 --- a/copy-builtin +++ b/copy-builtin @@ -55,6 +55,8 @@ adjust_obj_paths() for MODULE in "${MODULES[@]}" do adjust_obj_paths "$KERNEL_DIR/fs/zfs/$MODULE/Makefile" + sed -i.bak '/obj =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile" + sed -i.bak '/src =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile" done cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF"