forked from jfwells/linux-asus-t100ta
-
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.
- Loading branch information
Showing
2 changed files
with
1,082 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,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 |
Oops, something went wrong.