Skip to content

Commit 2e9ca94

Browse files
committed
add dkms support
closes #13
1 parent dc26441 commit 2e9ca94

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ set-version:
145145
perl -i -pe 's/^(tp_smapi version ).*/$${1}$(VER)/' README
146146
perl -i -pe 's/^(#define TP_VERSION ").*/$${1}$(VER)"/' thinkpad_ec.c tp_smapi.c
147147
perl -i -pe 's/^(TP_VER := ).*/$${1}$(VER)/' Makefile
148+
perl -i -pe 's/^(PACKAGE_VERSION=").*/$${1}$(VER)"/' dkms.conf
148149

149150
TGZ=../tp_smapi-$(VER).tgz
150151
create-tgz:

dkms.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PACKAGE_NAME="tp_smapi"
2+
PACKAGE_VERSION="0.41"
3+
MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build HDAPS=1"
4+
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
5+
BUILT_MODULE_NAME[0]="thinkpad_ec"
6+
BUILT_MODULE_NAME[1]="tp_smapi"
7+
BUILT_MODULE_NAME[2]="hdaps"
8+
DEST_MODULE_LOCATION[0]="/extra"
9+
DEST_MODULE_LOCATION[1]="/extra"
10+
DEST_MODULE_LOCATION[2]="/updates"
11+
AUTOINSTALL="yes"

0 commit comments

Comments
 (0)