d83d25c2f8
This commit adds support for building a spl-modules-dkms sub package built around Dynamic Kernel Module Support. This is to allow building packages using the DKMS infrastructure which is intended to ease the burden of kernel version changes, upgrades, etc. By default spl-modules-dkms-* sub package will be built as part of the 'make rpm' target. Alternately, you can build only the DKMS module package using the 'make rpm-dkms' target. Examples: # To build packaged binaries as well as a dkms packages $ ./configure && make rpm # To build only the packaged binary utilities and dkms packages $ ./configure && make rpm-utils rpm-dkms Note: Only the RHEL 5/6, CHAOS 5, and Fedora distributions are supported for building the dkms sub package. Signed-off-by: Prakash Surya <surya1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue zfsonlinux/zfs#535
24 lines
765 B
Plaintext
24 lines
765 B
Plaintext
AUTOINSTALL="yes"
|
|
PACKAGE_NAME="@PACKAGE@"
|
|
PACKAGE_VERSION="@VERSION@"
|
|
PRE_BUILD="configure
|
|
--prefix=/usr
|
|
--with-config=kernel
|
|
--with-linux=$(case `lsb_release -is` in
|
|
(Debian) echo ${kernel_source_dir/%build/source} ;;
|
|
(*) echo ${kernel_source_dir} ;;
|
|
esac)
|
|
--with-linux-obj=${kernel_source_dir}
|
|
"
|
|
POST_INSTALL="dkms.postinst -a ${arch} -k ${kernelver} -t ${dkms_tree}
|
|
-n ${PACKAGE_NAME} -v ${PACKAGE_VERSION}
|
|
"
|
|
REMAKE_INITRD="no"
|
|
MAKE[0]="make"
|
|
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"
|