blob: ea212c523bd662d77cea756e1415c32798d5a97e [file] [log] [blame]
Lukas Hänelfc412b42012-06-01 19:12:29 +02001#
2# Makefile for the kernel mobicore drivers
3#
4GUD_ROOT_FOLDER := drivers/gud
5# add our modules to kernel.
6obj-$(CONFIG_MOBICORE_API) += mckernelapi.o
7obj-$(CONFIG_MOBICORE_SUPPORT) += mcdrvmodule.o
8
9mcdrvmodule-objs := mobicore_driver/logging.o mobicore_driver/main.o
10
11mckernelapi-objs := mobicore_kernelapi/main.o \
12 mobicore_kernelapi/clientlib.o \
13 mobicore_kernelapi/device.o \
14 mobicore_kernelapi/session.o \
15 mobicore_kernelapi/connection.o
16
17# Release mode by default
18ccflags-y := -DNDEBUG
19ccflags-y += -Wno-declaration-after-statement
20
21ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG
22ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE
23
24# Choose one platform from the folder
25MOBICORE_PLATFORM := $(shell (ls -1 $(PWD)/$(GUD_ROOT_FOLDER)/mobicore_driver/platforms | tail -1) )
26# Use the available platform folder
27ccflags-y += -I$(GUD_ROOT_FOLDER)/mobicore_driver/platforms/$(MOBICORE_PLATFORM)
28
29
30ccflags-y += -I$(GUD_ROOT_FOLDER)/mobicore_driver/public
31ccflags-y += -I$(GUD_ROOT_FOLDER)/mobicore_kernelapi/include