This gist helps in recompiling the NCT6775 kernel module
See https://bugzilla.kernel.org/show_bug.cgi?id=204807
I updated the gist for compiling on kernel >= 5.17 where the module's source was splitted in different files
This gist helps in recompiling the NCT6775 kernel module
See https://bugzilla.kernel.org/show_bug.cgi?id=204807
I updated the gist for compiling on kernel >= 5.17 where the module's source was splitted in different files
| PACKAGE_NAME=nct6775 | |
| PACKAGE_VERSION=wim | |
| BUILT_MODULE_NAME[0]="nct6775-core" | |
| DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon" | |
| BUILT_MODULE_NAME[1]="nct6775" | |
| DEST_MODULE_LOCATION[1]="/kernel/drivers/hwmon" | |
| AUTOINSTALL=yes | |
| # currently no patch is shipped/applied | |
| #PATCH[0]="nct6775-wim.patch" |
| obj-m := nct6775-core.o | |
| nct6775-objs := nct6775-platform.o | |
| obj-$(CONFIG_SENSORS_NCT6775) += nct6775.o | |
| ## this is not currently compiled | |
| #obj-$(CONFIG_SENSORS_NCT6775_I2C) += nct6775-i2c.o |
| wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/lm75.h | |
| wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/nct6775.h | |
| wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/nct6775-core.c | |
| wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/nct6775-platform.c | |
| wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/nct6775-i2c.c | |
| # tell DKMS where this source stuff it | |
| sudo ln -s `realpath .` /usr/src/nct6775-wim | |
| # compile files above | |
| sudo dkms install nct6775/wim |