summaryrefstree
path: root/kernel/drivers/gud/gud-exynos5422/Makefile
blob: 9b861c671e600fb212761bb590d39ebafd35a5c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Makefile for the kernel mobicore drivers
#
GUD_ROOT_FOLDER := drivers/gud/gud-exynos5422
# add our modules to kernel.
obj-$(CONFIG_MOBICORE_API) += mcKernelApi.o
obj-$(CONFIG_MOBICORE_DRIVER) += 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

obj-$(CONFIG_SECURE_OS_CONTROL) += sec-os-ctrl/

# Release mode by default
ccflags-y := -DNDEBUG -include $(GUD_ROOT_FOLDER)/build_tag.h
ccflags-y += -Wno-declaration-after-statement

ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG
ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE

# Choose one platform from the folder
MOBICORE_PLATFORM := $(shell (ls -1 $(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms | tail -1) )
ifeq ($(MOBICORE_PLATFORM), ARM_VE_A9X4_QEMU)
    ccflags-y += -DMC_NETLINK_COMPAT
endif

ifeq ($(MOBICORE_PLATFORM), MSM8974_SURF_STD)
    ccflags-y += -DMC_NETLINK_COMPAT_V37
endif

ifeq ($(MOBICORE_PLATFORM), EXYNOS_5422_STD)
    ccflags-y += -DMC_NETLINK_COMPAT_V37
endif

ifeq ($(MOBICORE_PLATFORM), EXYNOS_5430_STD)
    ccflags-y += -DMC_NETLINK_COMPAT_V37
endif

# 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 \
		-I$(GUD_ROOT_FOLDER)/MobiCoreKernelApi/public