]> granicus.if.org Git - zfs/commit
Support Debian DKMS builds
authorAntonio Russo <antonio.e.russo@gmail.com>
Sat, 26 May 2018 17:56:24 +0000 (13:56 -0400)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:46:51 +0000 (02:46 -0700)
commit3350a339081a4046f39e10b51f169c6ddc4dd08c
treede559d0a6f05f49113032cf2d70f9d53de7c56e3
parent3eef58c9b6753fac47cd0640207873b83432efc7
Support Debian DKMS builds

scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #7358
Closes #7540
Closes #7554
scripts/dkms.mkconf