summaryrefslogtreecommitdiff
path: root/sys-kernel/tp_smapi-dkms/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-25 11:17:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-25 11:17:25 +0100
commit77f479b205c8ffcb9f422505fba0b8a04268cbff (patch)
tree74a93e2304691435511436cb32ccbe3d2a0ecbf9 /sys-kernel/tp_smapi-dkms/files
parente322cc124bb1b5a23c3e995335b76e45d5401f97 (diff)
app-laptop/tp_smapi : import from Gentoo, convert to DKMS
Diffstat (limited to 'sys-kernel/tp_smapi-dkms/files')
-rw-r--r--sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf12
-rw-r--r--sys-kernel/tp_smapi-dkms/files/dkms.conf10
2 files changed, 22 insertions, 0 deletions
diff --git a/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf b/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf
new file mode 100644
index 00000000..9a74ec7a
--- /dev/null
+++ b/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf
@@ -0,0 +1,12 @@
+PACKAGE_NAME="tp_smapi-dkms"
+PACKAGE_VERSION="0.44"
+BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-8]\.)" # only build for kernels v5.x.x up to and including v6.8.x
+MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build HDAPS=1"
+CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
+BUILT_MODULE_NAME[0]="thinkpad_ec"
+BUILT_MODULE_NAME[1]="tp_smapi"
+BUILT_MODULE_NAME[2]="hdaps"
+DEST_MODULE_LOCATION[0]="/extra/dkms"
+DEST_MODULE_LOCATION[1]="/extra/dkms"
+DEST_MODULE_LOCATION[2]="/extra/dkms"
+AUTOINSTALL="yes"
diff --git a/sys-kernel/tp_smapi-dkms/files/dkms.conf b/sys-kernel/tp_smapi-dkms/files/dkms.conf
new file mode 100644
index 00000000..9dbb68d1
--- /dev/null
+++ b/sys-kernel/tp_smapi-dkms/files/dkms.conf
@@ -0,0 +1,10 @@
+PACKAGE_NAME="tp_smapi-dkms"
+PACKAGE_VERSION="0.44"
+BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-8]\.)" # only build for kernels v5.x.x up to and including v6.8.x
+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"
+BUILT_MODULE_NAME[0]="thinkpad_ec"
+BUILT_MODULE_NAME[1]="tp_smapi"
+DEST_MODULE_LOCATION[0]="/extra/dkms"
+DEST_MODULE_LOCATION[1]="/extra/dkms"
+AUTOINSTALL="yes"