nicupavel / emlog

emlog -- the EMbedded-system LOG-device
GNU General Public License v2.0
56 stars 20 forks source link

Add dkms support. #11

Closed Joe136 closed 5 years ago

Joe136 commented 6 years ago

Hi, I have added dkms.conf to automatically update the driver on kernel update.

In addition, this can be added to the Makefile (dkms needs to know the version).

DKMS = dkms

dkms_install: VERSION = $(shell grep 'PACKAGE_VERSION' dkms.conf | grep -oEe '[0-9.]+')
dkms_install:
   $(DKMS) add .
   $(DKMS) install emlog/$(VERSION)

dkms_remove: VERSION = $(shell grep 'PACKAGE_VERSION' dkms.conf | grep -oEe '[0-9.]+')
dkms_remove:
   $(DKMS) remove emlog/$(VERSION) --all
   rm -rf /usr/src/emlog-$(VERSION)
Joe136 commented 5 years ago

I added the Makefile

I changed dkms.conf

ahippo commented 5 years ago

Great, thank you for your changes! Merged in aee53e8.