summaryrefslogtreecommitdiff
path: root/sys-kernel/spl-dkms/files/dkms.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/spl-dkms/files/dkms.conf')
-rw-r--r--sys-kernel/spl-dkms/files/dkms.conf57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys-kernel/spl-dkms/files/dkms.conf b/sys-kernel/spl-dkms/files/dkms.conf
new file mode 100644
index 00000000..8ac2b1a7
--- /dev/null
+++ b/sys-kernel/spl-dkms/files/dkms.conf
@@ -0,0 +1,57 @@
+PACKAGE_NAME="spl-dkms"
+PACKAGE_VERSION="0.6.5.9"
+PACKAGE_CONFIG="/etc/sysconfig/spl"
+PRE_BUILD="configure
+ --prefix=/usr
+ --with-config=kernel
+ --with-linux=${kernel_source_dir}
+ --with-linux-obj=${kernel_source_dir}
+ $(
+ [[ -r ${PACKAGE_CONFIG} ]] \
+ && source ${PACKAGE_CONFIG} \
+ && shopt -q -s extglob \
+ && \
+ {
+ if [[ ${SPL_DKMS_ENABLE_DEBUG,,} == @(y|yes) ]]
+ then
+ echo --enable-debug
+ fi
+ if [[ ${SPL_DKMS_ENABLE_DEBUG_KMEM,,} == @(y|yes) ]]
+ then
+ echo --enable-debug-kmem
+ fi
+ if [[ ${SPL_DKMS_ENABLE_DEBUG_KMEM_TRACKING,,} == @(y|yes) ]]
+ then
+ echo --enable-debug-kmem-tracking
+ fi
+ if [[ ${SPL_DKMS_ENABLE_ATOMIC_SPINLOCKS,,} == @(y|yes) ]]
+ then
+ echo --enable-atomic-spinlocks
+ fi
+ }
+ )
+"
+POST_BUILD="scripts/dkms.postbuild
+ -n ${PACKAGE_NAME}
+ -v ${PACKAGE_VERSION}
+ -a ${arch}
+ -k ${kernelver}
+ -t ${dkms_tree}
+"
+AUTOINSTALL="yes"
+REMAKE_INITRD="no"
+MAKE[0]="make"
+STRIP[0]="$(
+ [[ -r ${PACKAGE_CONFIG} ]] \
+ && source ${PACKAGE_CONFIG} \
+ && shopt -q -s extglob \
+ && [[ ${SPL_DKMS_DISABLE_STRIP,,} == @(y|yes) ]] \
+ && echo -n no
+)"
+STRIP[1]="${STRIP[0]}"
+BUILT_MODULE_NAME[0]="spl"
+BUILT_MODULE_LOCATION[0]="module/spl/"
+DEST_MODULE_LOCATION[0]="/extra/spl/spl"
+BUILT_MODULE_NAME[1]="splat"
+BUILT_MODULE_LOCATION[1]="module/splat/"
+DEST_MODULE_LOCATION[1]="/extra/splat/splat"