diff options
Diffstat (limited to 'drivers/net/can/softing/Makefile')
-rw-r--r-- | drivers/net/can/softing/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/can/softing/Makefile b/drivers/net/can/softing/Makefile new file mode 100644 index 000000000000..df3fceca7bd0 --- /dev/null +++ b/drivers/net/can/softing/Makefile @@ -0,0 +1,20 @@ +# Makefile for softing CAN driver + +ifeq ($(KERNELRELEASE),) +# necessary when used outside kernel +KERNELDIR := /lib/modules/$(shell uname -r)/build +PWD := $(shell pwd) +TOPDIR := $(PWD)/../../../.. + +modules modules_install clean: + $(MAKE) -C $(KERNELDIR) M=$(PWD) $@ TOPDIR=$(TOPDIR) + +else + +-include $(TOPDIR)/Makefile.common + +softing-y := softing_main.o softing_fw.o +obj-$(CONFIG_CAN_SOFTING) += softing.o +obj-$(CONFIG_CAN_SOFTING_CS) += softing_cs.o + +endif |