-
-
Save greenbigfrog/26f948c9d86f1cb2fd23bfeaa23ca068 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PACKAGE_NAME=nct6775 | |
PACKAGE_VERSION=wim | |
BUILT_MODULE_NAME[0]="nct6775" | |
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon" | |
AUTOINSTALL=yes | |
PATCH[0]="nct6775-wim.patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m := nct6775.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /usr/src/nct6775-wim | |
cd /usr/src/nct6775-wim | |
mkdir patches | |
wget -O patches/nct6775-wim.patch https://bugzilla.kernel.org/attachment.cgi?id=298703 | |
sudo awk -i inplace '{gsub(/drivers\/hwmon\//,"");print}' patches/nct6775-wim.patch | |
wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/lm75.h | |
wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/nct6775.c | |
# grab files above | |
dkms install nct6775/wim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment