Makefile 695 B

12345678910111213141516171819
  1. # BTIF driver for AD DIE
  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 can be used in 2.6.34 in the future
  6. MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
  7. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
  8. subdir-ccflags-y += -I$(srctree)/arch/arm/mach-$(MTK_PLATFORM)/include/mach
  9. obj-y += common/
  10. # Otherwise we were called directly from the command
  11. # line; invoke the kernel build system.
  12. else
  13. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  14. PWD := $(shell pwd)
  15. default:
  16. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
  17. endif