Makefile 858 B

1234567891011121314151617181920212223242526272829
  1. # Connectivity combo 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. subdir-ccflags-y += -D MTK_WCN_REMOVE_KERNEL_MODULE
  6. ifeq ($(CONFIG_ARM64), y)
  7. subdir-ccflags-y += -D CONFIG_MTK_WCN_ARM64
  8. endif
  9. ifeq ($(CONFIG_MTK_CONN_LTE_IDC_SUPPORT),y)
  10. subdir-ccflags-y += -D WMT_IDC_SUPPORT=1
  11. else
  12. subdir-ccflags-y += -D WMT_IDC_SUPPORT=0
  13. endif
  14. subdir-ccflags-y += -D MTK_WCN_WMT_STP_EXP_SYMBOL_ABSTRACT
  15. obj-y += common/
  16. obj-$(CONFIG_MTK_COMBO_WIFI) += wlan/
  17. obj-$(CONFIG_MTK_COMBO_GPS) += gps/
  18. obj-n := dummy.o
  19. # Otherwise we were called directly from the command line;
  20. # invoke the kernel build system.
  21. else
  22. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  23. PWD := $(shell pwd)
  24. default:
  25. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
  26. endif