From 72d9f5d3c5b2c6c178360e089b04d04dc0fc184b Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Sun, 19 Jan 2020 15:53:37 -0600 Subject: [PATCH] Fix building of MV88X3310 with DKMS Signed-off-by: Jonathan Bennett I have a card that uses the MV88X3310 chip, and have located the appropriate firmware file and added it to my source directory. DKMS was failing to find and process that firmware file, because the dkms build instructions were changing the current directory before the Makefile had a chance to test for the hdr file's existence. This is a potential workaround, tested to work on CentOS 8. --- dkms.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dkms.conf b/dkms.conf index 170e32a..b669c6f 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,8 +1,8 @@ PACKAGE_NAME=tn40xx PACKAGE_VERSION=003 BUILT_MODULE_NAME[0]="$PACKAGE_NAME" -MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build" -CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean" +MAKE[0]="make" +CLEAN="make clean" DEST_MODULE_LOCATION[0]=/extra REMAKE_INITRD=no AUTOINSTALL=yes