forked from rubenslte/android_kernel_samsung_msm8226
* Samsung Package Version: G800HXXU1CRJ1
* CAF Tag: LA.BF.1.1.3-00110-8x26.0
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
#
|
|
# 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_SUPPORT) += mcDrvModule.o
|
|
|
|
mcDrvModule-objs := MobiCoreDriver/logging.o \
|
|
MobiCoreDriver/ops.o \
|
|
MobiCoreDriver/mem.o \
|
|
MobiCoreDriver/api.o \
|
|
MobiCoreDriver/pm.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 -I$(GUD_ROOT_FOLDER)
|
|
ccflags-y += -Wno-declaration-after-statement
|
|
|
|
#Netlink changed arguments number
|
|
#ccflags-y += -DMC_NETLINK_COMPAT_V37
|
|
|
|
ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG
|
|
ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE
|
|
|
|
# Choose one platform from the folder
|
|
MOBICORE_PLATFORM := $(shell (ls -1 $(PWD)/$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms | tail -1) )
|
|
# Use the available platform folder
|
|
ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms/$(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
|
|
ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreKernelApi/public
|