Add optional DKMS target to Makefile (v2)

Using DKMS, the driver will be automatically rebuilt when
the kernel is updated.

* `make dkms` to install via DKMS
* `make dkms_clean` to remove from DKMS

Signed-off-by: Burt P <pburt0@gmail.com>
This commit is contained in:
Burt P
2017-12-03 11:12:08 -06:00
committed by Guenter Roeck
parent 98fa33ddad
commit 5edd7bb6f9
3 changed files with 44 additions and 6 deletions

1
it87.c
View File

@@ -4263,6 +4263,7 @@ module_param(fix_pwm_polarity, bool, 0000);
MODULE_PARM_DESC(fix_pwm_polarity,
"Force PWM polarity to active high (DANGEROUS)");
MODULE_LICENSE("GPL");
MODULE_VERSION(IT87_DRIVER_VERSION);
module_init(sm_it87_init);
module_exit(sm_it87_exit);