| # |
| # Makefile for the kernel mobicore drivers |
| # |
| GUD_ROOT_FOLDER := drivers/gud/ |
| # add our modules to kernel. |
| obj-$(CONFIG_MOBICORE_API) += mcKernelApi.o |
| obj-$(CONFIG_MOBICORE_DRIVER) += mcDrvModule.o |
| mcDrvModule-objs :=MobiCoreDriver/logging.o MobiCoreDriver/main.o |
| |
| mcKernelApi-objs := MobiCoreKernelApi/main.o \ |
| MobiCoreKernelApi/clientlib.o \ |
| MobiCoreKernelApi/device.o \ |
| MobiCoreKernelApi/session.o \ |
| MobiCoreKernelApi/connection.o |
| |
| # Release mode by default |
| ccflags-y := -DNDEBUG |
| ccflags-y += -Wno-declaration-after-statement |
| |
| ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG |
| ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE |
| |
| # Use the selected platform folder |
| ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms/$(CONFIG_MOBICORE_PLATFORM) |
| # MobiCore Driver includes |
| ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/public |
| # MobiCore KernelApi required incldes |
| ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreKernelApi/include \ |
| -I$(GUD_ROOT_FOLDER)/MobiCoreKernelApi/public |