mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Update readme and manual dkms installation helper cmds
This commit is contained in:
parent
c3d1773264
commit
569066715e
18
Makefile
18
Makefile
|
@ -30,22 +30,22 @@ clean:
|
||||||
install:
|
install:
|
||||||
make -C $(KDIR) M=$(PWD) modules_install
|
make -C $(KDIR) M=$(PWD) modules_install
|
||||||
|
|
||||||
dkmsadd:
|
# Package version and name from dkms.conf
|
||||||
cp -R . /usr/src/tuxedo_keyboard-2.0.0
|
VER := $(shell sed -n 's/^PACKAGE_VERSION=\([^\n]*\)/\1/p' dkms.conf)
|
||||||
dkms add -m tuxedo_keyboard -v 2.0.0
|
MODULE_NAME := $(shell sed -n 's/^PACKAGE_NAME=\([^\n]*\)/\1/p' dkms.conf)
|
||||||
|
|
||||||
|
dkmsinstall:
|
||||||
|
cp -R . /usr/src/$(MODULE_NAME)-$(VER)
|
||||||
|
dkms install -m $(MODULE_NAME) -v $(VER)
|
||||||
|
|
||||||
dkmsremove:
|
dkmsremove:
|
||||||
dkms remove -m tuxedo_keyboard -v 2.0.0 --all
|
dkms remove -m $(MODULE_NAME) -v $(VER) --all
|
||||||
rm -rf /usr/src/tuxedo_keyboard-2.0.0
|
rm -rf /usr/src/$(MODULE_NAME)-$(VER)
|
||||||
|
|
||||||
# --------------
|
# --------------
|
||||||
# Packaging only
|
# Packaging only
|
||||||
# ---------------
|
# ---------------
|
||||||
|
|
||||||
# Package version and name from dkms.conf
|
|
||||||
VER := $(shell sed -n 's/^PACKAGE_VERSION=\([^\n]*\)/\1/p' dkms.conf)
|
|
||||||
MODULE_NAME := $(shell sed -n 's/^PACKAGE_NAME=\([^\n]*\)/\1/p' dkms.conf)
|
|
||||||
|
|
||||||
DEB_PACKAGE_NAME := $(MODULE_NAME)-$(VER)
|
DEB_PACKAGE_NAME := $(MODULE_NAME)-$(VER)
|
||||||
|
|
||||||
# Deb package folder variables
|
# Deb package folder variables
|
||||||
|
|
30
README.md
30
README.md
|
@ -35,13 +35,15 @@ For convenience, on platforms where DKMS is in use, skip to the DKMS section dir
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/tuxedocomputers/tuxedo-keyboard.git
|
git clone https://github.com/tuxedocomputers/tuxedo-keyboard.git
|
||||||
|
|
||||||
|
cd tuxedo-keyboard
|
||||||
|
|
||||||
|
git checkout release
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build the Module:
|
## Build the Module:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd tuxedo-keyboard
|
|
||||||
|
|
||||||
make clean && make
|
make clean && make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -49,25 +51,11 @@ make clean && make
|
||||||
|
|
||||||
### Add as DKMS Module:
|
### Add as DKMS Module:
|
||||||
|
|
||||||
Add the Module:
|
Install the Module:
|
||||||
```sh
|
```sh
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
sudo mkdir /usr/src/tuxedo-keyboard-2.0.0/
|
sudo make dkmsinstall
|
||||||
|
|
||||||
sudo cp -R . /usr/src/tuxedo-keyboard-2.0.0/
|
|
||||||
|
|
||||||
sudo dkms add -m tuxedo-keyboard -v 2.0.0
|
|
||||||
```
|
|
||||||
|
|
||||||
Compile the Module:
|
|
||||||
```sh
|
|
||||||
sudo dkms build -m tuxedo-keyboard -v 2.0.0
|
|
||||||
```
|
|
||||||
|
|
||||||
Install the Module:
|
|
||||||
```sh
|
|
||||||
sudo dkms install -m tuxedo-keyboard -v 2.0.0
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Load the Module with modprobe:
|
Load the Module with modprobe:
|
||||||
|
@ -83,9 +71,7 @@ sudo modprobe tuxedo_keyboard
|
||||||
|
|
||||||
Remove the DKMS module and source:
|
Remove the DKMS module and source:
|
||||||
```sh
|
```sh
|
||||||
sudo dkms remove -m tuxedo-keyboard -v 2.0.0 --all
|
sudo make dkmsremove
|
||||||
|
|
||||||
sudo rm -rf /usr/src/tuxedo-keyboard-2.0.0
|
|
||||||
|
|
||||||
sudo rm /etc/modprobe.d/tuxedo_keyboard.conf
|
sudo rm /etc/modprobe.d/tuxedo_keyboard.conf
|
||||||
```
|
```
|
||||||
|
@ -100,6 +86,8 @@ modprobe tuxedo_keyboard
|
||||||
|
|
||||||
## Load the Module on boot:
|
## Load the Module on boot:
|
||||||
|
|
||||||
|
If the module is relevant it will be loaded automatically on boot. If it is not loaded after a reboot, it most likely means that it is not needed.
|
||||||
|
|
||||||
Add Module to /etc/modules
|
Add Module to /etc/modules
|
||||||
```sh
|
```sh
|
||||||
sudo su
|
sudo su
|
||||||
|
|
Loading…
Reference in a new issue