Makefile 808 B

123456789101112131415161718192021222324252627
  1. # CONN-MD Bridge Driver
  2. # If KERNELRELEASE is defined, we've been invoked from the
  3. # kernel build system and can use its language.
  4. ifneq ($(KERNELRELEASE),)
  5. ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/$(MTK_PLATFORM)
  6. ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/
  7. ccflags-y += -I$(src)/include/
  8. obj-y += conn_md_bridge.o
  9. conn_md_bridge-objs := conn_md.o
  10. conn_md_bridge-objs += conn_md_exp.o
  11. conn_md_bridge-objs += conn_md_log.o
  12. conn_md_bridge-objs += conn_md_dump.o
  13. conn_md_bridge-objs += conn_md_dbg.o
  14. conn_md_bridge-objs += conn_md_test.o
  15. # Otherwise we were called directly from the command
  16. # line; invoke the kernel build system.
  17. else
  18. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  19. PWD := $(shell pwd)
  20. default:
  21. $(MAKE) -C
  22. endif