Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7944fc5
Showing
7 changed files
with
3,066 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ignore thumbnails created by windows | ||
Thumbs.db | ||
#ignore Desktop Service Store files created by mac | ||
*.DS_Store | ||
#Ignore files build by Visual Studio | ||
*.obj | ||
*.exe | ||
*.pdb | ||
*.user | ||
*.aps | ||
*.pch | ||
*.vspscc | ||
*_i.c | ||
*_p.c | ||
*.ncb | ||
*.suo | ||
*.tlb | ||
*.tlh | ||
*.bak | ||
*.cache | ||
*.ilk | ||
*.log | ||
[Bb]in | ||
[Dd]ebug*/ | ||
*.lib | ||
*.sbr | ||
obj/ | ||
[Rr]elease*/ | ||
_ReSharper*/ | ||
[Tt]est[Rr]esult* | ||
build | ||
/results/ |
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,68 @@ | ||
USER := $(shell whoami) | ||
DEBUG := y | ||
UNAME := $(shell uname -m) | ||
obj-m := gspca.o kinect.o | ||
KERNELDIR ?= /lib/modules/$(shell uname -r)/build | ||
|
||
ifeq ($(DEBUG),y) | ||
DEBFLAGS = -O -g | ||
else | ||
DEBFLAGS = -O2 | ||
endif | ||
EXTRA_CFLAGS += $(DEBFLAGS) | ||
|
||
|
||
ifeq ($(UNAME),armv61) | ||
AMRKDIR := /usr/src/linux | ||
else | ||
ARCH := arm | ||
CROSS := arm-linux-gnueabi- | ||
ARMKDIR := /usr/src/arm/linux | ||
endif | ||
|
||
default: | ||
make pc | ||
|
||
arm: | ||
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS) -C $(ARMKDIR) M=$(PWD) modules | ||
|
||
|
||
pc: | ||
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules | ||
|
||
unload_drivers: | ||
sudo sh unload_drivers.sh | ||
|
||
reload_video_drivers: | ||
make unload_drivers | ||
sudo modprobe gspca_main | ||
sudo modprobe gspca_kinect | ||
|
||
load: | ||
make unload_drivers | ||
sudo modprobe videodev | ||
sudo insmod gspca.ko | ||
sudo insmod kinect.ko | ||
sudo chown -f -R $(USER):$(USER) /dev/video* | ||
sudo chmod -f 755 /dev/video* | ||
|
||
fi: | ||
make fix-rights | ||
make clean | ||
make | ||
make unload_drivers | ||
make install | ||
make fix-rights | ||
|
||
fix-rights: | ||
sudo chown -f -R $(USER):$(USER) $(PWD) | ||
|
||
clean: | ||
rm -f *~ *.o *.ko | ||
rm -f .built_in.o.cmd built_in.o | ||
rm -f .*.cmd *.ko *.mod.c | ||
rm -f *.symvers *.order | ||
rm -rf .tmp_versions | ||
rm -f *.log | ||
rm -rf modules.order *.mod.c | ||
rm -rf Module.symvers |
Oops, something went wrong.