Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 02909b7

Browse files
committed
Add debian dkms package files
1 parent 3d486e8 commit 02909b7

File tree

7 files changed

+272
-0
lines changed

7 files changed

+272
-0
lines changed

debian/changelog

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
it87-dkms (1.20181809) UNRELEASED; urgency=medium
2+
3+
[ Guenter Roeck ]
4+
* it87: upstream version
5+
* it87: Initial / experimental support for IT8783E/F
6+
* it87: Add missing chip name
7+
* it87: Support older kernels
8+
* it87: Remove artifact from initial code changes
9+
* it87: Add experimental support for IT8771E, IT8772E
10+
* it87: IT8783E/F only support three fans
11+
* it87: Add experimental support for IT8781F and IT8782F
12+
* it87: IT8781F and IT8782F support monitoring 5 fans
13+
* it87: Do not attempt to re-route VIN7
14+
* it87: VIN7 does not depend on bit 2 of reg2C
15+
* Add compat.h for backwards compatibility
16+
* Merge with latest upstream version
17+
* sync with Jean's generic version. Drop support for unknown/untested chips
18+
* Drop unsupported chips from README file
19+
* sync with upstream version
20+
* Add temperature offset register support, and lots of cleanup (experimental)
21+
22+
[ Guenter ]
23+
* fix offset register access
24+
25+
[ Guenter Roeck ]
26+
* sync w/ upstream, plus preliminary PECI support
27+
* Synchronize with upstream version
28+
* Add support for IT8781F
29+
* Add feature flags for fan count and 16-bit fan configuration
30+
* Add feature flag for VID support
31+
32+
[ Zlika ]
33+
* Add support for IT8786E.
34+
35+
[ Guenter Roeck ]
36+
* sync README with upstream version
37+
* Formatting cleanup
38+
* Experimental support for ITE8790E
39+
* Some cleanup, plus AVCC3 support for ITE8620E
40+
* Various enhancements
41+
* Add support for two Super-IO chips
42+
* Fix superio enable sequence for SIO address 0x4e
43+
* Rearrange code to avoid forward declarations
44+
* Various enhancements, cleanup, and fixes
45+
* Support for newer autopwm, plus other changes and cleanup
46+
* Add support for IT8628E and IT8732F
47+
* Synchronize with upstream version
48+
* Add feature flag indicating that VIN3 is connected to 5V
49+
* Update README to match upstream documentation
50+
* Add support for IT8622E
51+
* Improve IT8622 support
52+
* Ensure that pwm control cache is current before updating values
53+
* Add preliminary support for IT8792E
54+
* Experimental support for IT8607E
55+
* Add TODO file
56+
* Fix fan4_ctl detection for IT8620, IT8628
57+
* Do not overwrite bit 2..6 of pwm control registers
58+
* Fix feature mask for IT8792E (IT8733E)
59+
* Add 4th fan control and measurement for IT8732E
60+
* Update TODO: 4th fan control for IT8732E is now supported
61+
* Force chip ID only if a chip has been found
62+
* Add multi-bank and initial IT8686E support
63+
* Separate internal scaling from 12mV ADC
64+
65+
[ Drew ]
66+
* Added preliminary support for IT8665E
67+
68+
[ Guenter Roeck ]
69+
* Add support for chip specific register sets
70+
* Update TODO and README files
71+
* Preliminary support for IT8655E
72+
* Improve AVCC3 support
73+
* Add feature flag FEAT_FANCTL_ONOFF
74+
* Add register map
75+
* Register map as CSV
76+
* Add limit support for temp 4-6
77+
* Various improvements
78+
* Fix up temp offset register addresses
79+
* Add support for 11mV ADC
80+
* FEAT_TEMP_PECI does not apply to multi-bank chips.
81+
* Disable access to 2nd Super-IO chip
82+
* Blacklist IT8792E on AX370-Gaming K7
83+
84+
[ andreychernyshev ]
85+
* Add support for IT8613E
86+
87+
[ Guenter Roeck ]
88+
* Fix up support for IT8613E
89+
* Introduce FEAT_NEW_TEMPMAP
90+
91+
[ koji54 ]
92+
* Add Gigabyte AX370-Gaming 5 to IT8792E blacklist
93+
94+
[ Guenter Roeck ]
95+
* Initialize register pointers before using them
96+
* Fix whitespace issues
97+
98+
[ Justin Maggard ]
99+
* Add support for IT8625E
100+
* Fix up support for IT8625E
101+
102+
[ Guenter Roeck ]
103+
* Mark 2nd Super-IO chip on AB350M-D3H as broken
104+
* Provide blacklist module parameter to override blacklist.
105+
* Declare dummy vid functions if needed
106+
* Add support for 6 temperature limit registers on IT8628E
107+
* Drop FEAT_TEMP_OFFSET
108+
* IT8607 does not support the 1st fan, only fan2-3
109+
110+
[ Enigma ]
111+
* README missing necessary build instructions
112+
113+
[ Guenter Roeck ]
114+
* Fix accesses to IT8792E
115+
* Drop ACPI mutex code
116+
* Force IT8790E and IT8792E into configuration mode
117+
* IT8655E and IT8665E both support internal register scaling
118+
119+
[ Yohan Pereira ]
120+
* Create the hwmon folder if it does not exist
121+
122+
[ Guenter Roeck ]
123+
* Update pwm cached control registers before writing pwm enable
124+
* Rework pwm temperature mapping
125+
* Makefile: Add support for compressed modules
126+
* Add 'ignore_resource_conflict' error
127+
* Try to add support for automatically detected build directories
128+
* Remove TODO
129+
* Update README
130+
* Fix reworked temperature mapping
131+
* Improve temperature sensor type detection for IT8686
132+
* Always restore previous bank register after reading/writing data
133+
* Simplify and fix temperature sensor type detection
134+
* Makefile: Generate version.h
135+
* it87: Display driver version
136+
* Ignore version.h
137+
* Remove version.h when running clean, and clean does not depend on version.h
138+
* Fix FAN_TAC5 detection for IT8665E
139+
* Disable SMBus access while accessing Enviromnental Controller registers
140+
* Add MMIO support
141+
* Update README to describe new module parameters
142+
* Print MMIO address into kernel log
143+
* IT8655E supports MMIO
144+
* Fix mmio resource request
145+
* Add SMBus bitmap for IT8622
146+
* Improve AMDTSI temp type detection, and temp 4 type detection on IT8622
147+
* Add support for 4th temperature sensor on IT8622
148+
* Drop version.h
149+
* Checkpatch cleanup: Double semicolon, missing space
150+
* Checkpatch cleanup: Use octal permissions for module parameters
151+
* Checkpatch cleanup: Use octal file permissions
152+
* Checkpatch cleanup: Opening brackets
153+
* Checkpatch cleanup: Line length
154+
* Makefile: Versioning, take three
155+
* Experimental support for IT8606E
156+
* Report actual chip name, not its ID
157+
* Do not disable SMBs unless really necessary
158+
* Fix PECI/AMDTSI selection
159+
160+
[ Burt P ]
161+
* Add optional DKMS target to Makefile
162+
163+
[ Guenter Roeck ]
164+
* Add ISSUES file
165+
* Add more known problems to ISSUES file
166+
* Add comment explaining why smbus_disable is needed in probe
167+
* Revert "Add optional DKMS target to Makefile"
168+
* README: Fix typo
169+
170+
[ Burt P ]
171+
* Add optional DKMS target to Makefile (v2)
172+
* Makefile: DKMS fix
173+
174+
[ Guenter Roeck ]
175+
* Fix up fan / pwm detection for IT8625/IT8665
176+
* Save and restore bank around envmon register accesses if needed
177+
* Fix scaling for IT8732F
178+
* Add preliminary support for IT8736F and IT8738E
179+
* Fix fan control for IT8736F
180+
181+
[ mettacrawler ]
182+
* Support Arch
183+
184+
[ Guenter Roeck ]
185+
* Provide vid_from_reg and vid_which_vrm if needed
186+
* Revert "Provide vid_from_reg and vid_which_vrm if needed"
187+
* Fix temperature type for peci/amdtsi if diode/thermistor is also set
188+
* Enable all temperature registers for IT8655E and IT8665E
189+
190+
[ airbjorn ]
191+
* fixing indents in #defines: replacing spaces by tabs
192+
* replaced two spaces with one
193+
* auto-adjust loop threshold to changes in the array size
194+
195+
[ Burt P ]
196+
* README: Add dkms instructions for #95
197+
198+
[ Guenter Roeck ]
199+
* Add driver removal notice
200+
201+
[ Hannes Haberl ]
202+
* Fix make dkms
203+
* Use $(KERNEL_BUILD) as kernel source directory
204+
205+
-- Hannes Haberl <[email protected]> Tue, 14 Aug 2018 21:36:06 +0200

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Source: it87-dkms
2+
Section: misc
3+
Priority: optional
4+
Maintainer: Hannes Haberl <[email protected]>
5+
Build-Depends: debhelper (>= 9), dkms
6+
7+
Package: it87-dkms
8+
Architecture: linux-any
9+
Depends: ${misc:Depends}, dkms
10+
Description: it87

debian/dkms

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dkms-debian/dkms.conf

debian/rules

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/make -f
2+
3+
name = it87
4+
5+
version := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | rev | cut -d- -f2- | rev | cut -d':' -f2)
6+
7+
%:
8+
dh $@ --with dkms
9+
10+
override_dh_install:
11+
dh_installdirs -p$(name)-dkms usr/src/$(name)-$(version)
12+
dh_install -p$(name)-dkms dkms-debian/Makefile usr/src/$(name)-$(version)
13+
dh_install -p$(name)-dkms it87.c usr/src/$(name)-$(version)
14+
15+
override_dh_dkms:
16+
dh_dkms -V $(version)
17+
18+
override_dh_auto_configure:
19+
override_dh_auto_build:
20+
override_dh_auto_test:
21+
override_dh_auto_install:
22+
override_dh_auto_clean:

dkms-debian/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
modname := it87
2+
obj-m := $(modname).o
3+
4+
KVERSION := $(shell uname -r)
5+
KERNEL_BUILD := /lib/modules/$(KVERSION)/build
6+
PWD := $(shell pwd)
7+
8+
ifndef DRIVER_VERSION:
9+
DRIVER_VERSION := 20181408
10+
endif
11+
IT87_CFLAGS=-DIT87_DRIVER_VERSION='\"$(DRIVER_VERSION)\"'
12+
13+
default:
14+
$(MAKE) EXTRA_CFLAGS="$(IT87_CFLAGS)" -C $(KERNEL_BUILD) M=$(PWD) modules
15+
16+
modules:
17+
$(MAKE) EXTRA_CFLAGS="$(IT87_CFLAGS)" -C $(KERNEL_BUILD) M=$(PWD) $@
18+
19+
clean:
20+
$(MAKE) -C $(KERNEL_BUILD) M=$(PWD) clean
21+
22+
install:
23+
$(MAKE) -C $(KERNEL_BUILD) M=$(PWD) modules_install
24+
25+
load:
26+
-/sbin/rmmod $(modname)
27+
/sbin/insmod $(modname).ko

dkms-debian/dkms.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PACKAGE_NAME=it87
2+
PACKAGE_VERSION=#MODULE_VERSION#
3+
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
4+
MAKE[0]="make modules DRIVER_VERSION=$PACKAGE_VERSION KVERSION=$kernelver"
5+
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon/it87"
6+
AUTOINSTALL="yes"

0 commit comments

Comments
 (0)