-
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.
support and doc for creating dkms debian package, added sysfs class f…
…ile for udev
- Loading branch information
Christoph
committed
Jul 12, 2013
1 parent
7eab8a4
commit 9f17807
Showing
4 changed files
with
50 additions
and
21 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,23 +1,20 @@ | ||
ifeq ($(KERNELRELEASE),) | ||
#Outside Kbuild Part | ||
|
||
KERNELDIR ?= /usr/src/raspberry_kernel/linux-source-3.6.11+ | ||
PWD := $(shell pwd) | ||
KDIR ?= /lib/modules/`uname -r`/build | ||
$(info Running Makefile outside Kbuild-System) | ||
|
||
.PHONY: build clean | ||
|
||
mod: | ||
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules | ||
default: | ||
$(MAKE) -C $(KDIR) M=$$PWD | ||
|
||
clean: | ||
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c | ||
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c modules.order Module.symvers .tmp_versions | ||
|
||
load: | ||
-rmmod pinbus | ||
insmod pinbus.ko | ||
-mknod /dev/pinbus c `grep pinbus /proc/devices | cut -d ' ' -f 1` 0 | ||
else | ||
#Kbuild Part | ||
|
||
$(info Building with KERNELRELEASE = ${KERNELRELEASE}) | ||
obj-m := pinbus.o | ||
|
||
endif | ||
|
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
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,10 @@ | ||
PACKAGE_NAME="pinbus-dkms" | ||
PACKAGE_VERSION="0.23" | ||
CLEAN="rm -f *.*o" | ||
BUILT_MODULE_NAME=pinbus | ||
DEST_MODULE_LOCATION="/updates" | ||
REMAKE_INITRD="no" | ||
AUTOINSTALL="yes" | ||
|
||
#MAKE="make KERNELDIR=/lib/modules/${kernelver}/build" | ||
#BUILT_MODULE_LOCATION=src/ |
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