Delete dkms directory

This commit is contained in:
Taha 2022-04-22 19:27:12 +03:00 committed by GitHub
parent 462866872f
commit 5b90fab859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 1265 deletions

View file

@ -1,52 +0,0 @@
obj-m += nct6687.o
curpwd := $(shell pwd)
kver := $(shell uname -r)
build:
rm -rf ${curpwd}/${kver}
mkdir -p ${curpwd}/${kver}
cp ${curpwd}/Makefile ${curpwd}/nct6687.c ${curpwd}/${kver}
cd ${curpwd}/${kver}
make -C /lib/modules/${kver}/build M=${curpwd}/${kver} modules
install: build
sudo cp ${curpwd}/${kver}/nct6687.ko /lib/modules/${kver}/kernel/drivers/hwmon/
sudo depmod
sudo modprobe nct6687
clean:
[ -d "${curpwd}/${kver}" ] && make -C /lib/modules/${kver}/build M=${curpwd}/${kver} clean
dkms/build:
echo ">>> ${curpwd}"
make -C /lib/modules/${kver}/build M=${curpwd} modules
dkms/install:
rm -rf ${curpwd}/dkms
mkdir -p ${curpwd}/dkms
cp ${curpwd}/dkms.conf ${curpwd}/Makefile ${curpwd}/nct6687.c ${curpwd}/dkms
sudo rm -rf /usr/src/nct6687d-1
sudo cp -rT dkms /usr/src/nct6687d-1
sudo dkms install nct6687d/1
sudo modprobe nct6687
dkms/clean:
sudo dkms remove nct6687d/1
make -C /lib/modules/${kver}/build M=${curpwd} clean
debian/changelog: FORCE
git --no-pager log \
--format='nct6687d-dkms (%ad) unstable; urgency=low%n%n * %s%n%n -- %aN <%aE> %aD%n' \
--date='format:%Y%m%d-%H%M%S' \
> $@
deb: debian/changelog
dpkg-buildpackage -b -rfakeroot -us -uc
.PHONY: FORCE
FORCE:

View file

@ -1,7 +0,0 @@
PACKAGE_NAME="nct6687d"
PACKAGE_VERSION="1"
MAKE[0]="make dkms/build"
BUILT_MODULE_NAME[0]="nct6687"
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon/"
AUTOINSTALL="yes"
REMAKE_INITRD=no

File diff suppressed because it is too large Load diff