Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6c4ad71246
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (26 sloc) 1.068 kb
#ccflags-y+=-Wfatal-errors
ccflags-y+=-include $M/ctracer.h
ccflags-y+=-D DEBUG
ccflags-y+=-D CTRACER_ON
ccflags-y+=-D USE_PLATFORM_DEVICE
#ccflags-y+=-D USE_MISCDEV # uncomment to use single misc device instead char devices region
obj-m+= ldt.o
obj-m+= ldt_plat_drv.o # implements platform_driver only
obj-m+= ldt_plat_dev.o # implements platform_device and resource
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
all: modules dio
modules:
$(MAKE) -C $(KERNELDIR) M=$$PWD modules
modules_install:
$(MAKE) -C $(KERNELDIR) M=$$PWD modules_install
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers dio *.tmp *.log
depend .depend dep:
$(CC) $(ccflags-y) -M *.c > .depend
dio: CPPFLAGS+= -D CTRACER_ON -include ctracer.h -g
ifeq (.depend,$(wildcard .depend))
include .depend
endif
_src=dio.c ldt.c ldt_plat_dev.c ldt_plat_drv.c ctracer.h
checkpatch:
/usr/src/linux-headers-$(shell uname -r)/scripts/checkpatch.pl --no-tree --show-types --ignore LONG_LINE,LINE_CONTINUATIONS --terse -f $(_src) Makefile
Jump to Line
Something went wrong with that request. Please try again.