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 <behlendorf1@llnl.gov>
Issue zfsonlinux/spl#481
Issue zfsonlinux/spl#498
This commit is contained in:
Brian Behlendorf 2015-12-01 18:24:40 -08:00
parent 61d482f7cd
commit 60bd953ca4
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ adjust_obj_paths()
for MODULE in "${MODULES[@]}" for MODULE in "${MODULES[@]}"
do do
adjust_obj_paths "$KERNEL_DIR/fs/zfs/$MODULE/Makefile" 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 done
cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF" cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF"