forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request commaai#35 from commaai/realdevel
Merge in DKMS support.
- Loading branch information
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
VERSION=0.0.1 | ||
obj-m+=panda.o | ||
|
||
all: | ||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules | ||
clean: | ||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean | ||
link: | ||
sudo dkms add `pwd` | ||
|
||
build: | ||
sudo dkms build panda/$(VERSION) | ||
|
||
install: | ||
sudo dkms install panda/$(VERSION) | ||
|
||
all: build install | ||
|
||
uninstall: | ||
sudo dkms uninstall panda/$(VERSION) | ||
sudo dkms remove panda/$(VERSION) --all | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Installs the panda linux kernel driver using DKMS. | ||
|
||
This will allow the panda to work with tools such as `can-utils` | ||
|
||
prerequisites: | ||
- apt-get install dkms gcc linux-headers-$(uname -r) make sudo | ||
|
||
installation: | ||
- make link (only needed the first time. It will report an error on subsequent attempts to link) | ||
- make all | ||
- make install | ||
|
||
uninstall: | ||
- make uninstall | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PACKAGE_NAME="panda" | ||
PACKAGE_VERSION="0.0.1" | ||
BUILT_MODULE_NAME[0]="panda" | ||
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/panda/" | ||
AUTOINSTALL="yes" | ||
|