check for dkms availability first in the dkms-install target

This commit is contained in:
Feiyang Xue 2020-07-31 18:38:04 -05:00
parent caf80fef03
commit 2d0e5fad2d

View file

@ -30,6 +30,7 @@ clean:
@$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) clean
dkms-install:
dkms --version >> /dev/null
mkdir -p $(DKMS_ROOT_PATH)
cp $(CURDIR)/dkms.conf $(DKMS_ROOT_PATH)
cp $(CURDIR)/Makefile $(DKMS_ROOT_PATH)