diff options
| -rwxr-xr-x | dkms/dkms-install.sh | 11 | ||||
| -rw-r--r-- | dkms/dkms.conf | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/dkms/dkms-install.sh b/dkms/dkms-install.sh index 16e3125..261bbe7 100755 --- a/dkms/dkms-install.sh +++ b/dkms/dkms-install.sh @@ -1,5 +1,8 @@ #!/bin/sh +# script assumes it is being run from root, i.e. +# sudo ./dkms/dkms-install.sh + if ! [ $(id -u) = 0 ]; then echo "You must run this script as root!" exit 1 @@ -10,8 +13,12 @@ TM_VER=0.8 DST="/usr/src/${TM_NAME}-${TM_VER}" mkdir -p "${DST}" -cp -r ../src/* "${DST}" -cp -r ../deps/* "${DST}" +cp -r * "${DST}" + +# copy dkms.conf specifically to be in root dir or build area +cp dkms/dkms.conf "${DST}" + +cd dkms dkms add -m "${TM_NAME}" -v "${TM_VER}" dkms build -m "${TM_NAME}" -v "${TM_VER}" diff --git a/dkms/dkms.conf b/dkms/dkms.conf index 25ef2ca..3863d31 100644 --- a/dkms/dkms.conf +++ b/dkms/dkms.conf @@ -12,7 +12,7 @@ CLEAN[0]="'make' KDIR=\"$kernel_source_dir\" clean" # The list of kernel modules. #__DKMS_MODULES BUILT_MODULE_NAME[0]="hid-tminit" -BUILT_MODULE_LOCATION="hid-tminit/" +BUILT_MODULE_LOCATION="deps/hid-tminit/" DEST_MODULE_LOCATION[0]="/kernel/drivers/hid" BUILT_MODULE_NAME[1]="hid-tmff-new" DEST_MODULE_LOCATION[1]="/kernel/drivers/hid" |
