Skip to content

Commit

Permalink
Added ACPI support to driver
Browse files Browse the repository at this point in the history
  • Loading branch information
jfwells committed Jan 5, 2016
1 parent 96aee7c commit 4c40317
Show file tree
Hide file tree
Showing 2 changed files with 1,082 additions and 0 deletions.
30 changes: 30 additions & 0 deletions mt9m114-driver/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
ifeq ($(KERNELRELEASE),)

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

.PHONY: build clean

build:

$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
@echo "\n\n**************************\n"
@echo "Module compiled successfully.\n\nTo install it, run 'make install', as root.\n"
@echo "******************************\n"
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c *.symvers *.order

install:
cp mt9m114.ko /lib/modules/`uname -r`/kernel/drivers/media/i2c/soc_camera
depmod
@echo "\n\n**************************\n"
@echo "Module installed for this kernel.\n\nRun it with 'modprobe mt9m114' as root.\n"
@echo "******************************\n"
else

$(info Building with KERNELRELEASE = ${KERNELRELEASE})

ccflags-y := -std=gnu99 -Wno-declaration-after-statement
obj-m := mt9m114.o

endif
Loading

0 comments on commit 4c40317

Please sign in to comment.