]> git.proxmox.com Git - mirror_spl.git/commitdiff
Ensure spl/ only occurs once in core-y
authorChip Parker <aparker@enthought.com>
Tue, 26 Jan 2016 01:13:50 +0000 (19:13 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Jan 2016 19:54:24 +0000 (11:54 -0800)
Update copy-builtin so it may be run multiple times against
the kernel source tree.  This change makes sed more discriminating
to ensure spl/ only occurs once in core-y.

Signed-off-by: Chip Parker <aparker@enthought.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #526

copy-builtin

index aa4307386688e9c2971abaf7ee345e731d6c6d81..34c482bab697cf1672617e79a9a19940c46a9804 100755 (executable)
@@ -116,7 +116,7 @@ add_after()
 add_after "$KERNEL_DIR/Kconfig" 'source "arch/$SRCARCH/Kconfig"' 'source "spl/Kconfig"'
 # We must take care to build SPL before ZFS, otherwise the symbols required
 # to link ZFS will not be available.
-sed -i 's#+= kernel/#+= kernel/ spl/#' "$KERNEL_DIR/Makefile"
+sed -i 's~mm/ fs/~mm/ spl/ fs/~' "$KERNEL_DIR/Makefile"
 
 echo >&2
 echo "    $0: done." >&2