Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the kernel mobicore drivers |
| 3 | # |
| 4 | GUD_ROOT_FOLDER := drivers/gud |
| 5 | # add our modules to kernel. |
Oana Medvesan | a036180 | 2013-12-20 13:52:46 +0100 | [diff] [blame] | 6 | obj-$(CONFIG_MOBICORE_API) += mcKernelApi.o |
| 7 | obj-$(CONFIG_MOBICORE_SUPPORT) += mcDrvModule.o |
Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 8 | |
Oana Medvesan | a036180 | 2013-12-20 13:52:46 +0100 | [diff] [blame] | 9 | mcDrvModule-objs := MobiCoreDriver/logging.o \ |
| 10 | MobiCoreDriver/ops.o \ |
| 11 | MobiCoreDriver/mem.o \ |
| 12 | MobiCoreDriver/api.o \ |
| 13 | MobiCoreDriver/pm.o \ |
| 14 | MobiCoreDriver/main.o |
Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 15 | |
Oana Medvesan | a036180 | 2013-12-20 13:52:46 +0100 | [diff] [blame] | 16 | mcKernelApi-objs := MobiCoreKernelApi/main.o \ |
| 17 | MobiCoreKernelApi/clientlib.o \ |
| 18 | MobiCoreKernelApi/device.o \ |
| 19 | MobiCoreKernelApi/session.o \ |
| 20 | MobiCoreKernelApi/connection.o |
Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 21 | |
| 22 | # Release mode by default |
Oana Medvesan | a036180 | 2013-12-20 13:52:46 +0100 | [diff] [blame] | 23 | ccflags-y := -DNDEBUG -I$(GUD_ROOT_FOLDER) |
Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 24 | ccflags-y += -Wno-declaration-after-statement |
| 25 | |
| 26 | ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG |
| 27 | ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE |
| 28 | |
| 29 | # Choose one platform from the folder |
Oana Medvesan | a036180 | 2013-12-20 13:52:46 +0100 | [diff] [blame] | 30 | MOBICORE_PLATFORM := $(shell (ls -1 $(PWD)/$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms | tail -1) ) |
Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 31 | # Use the available platform folder |
Oana Medvesan | a036180 | 2013-12-20 13:52:46 +0100 | [diff] [blame] | 32 | ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms/$(MOBICORE_PLATFORM) |
| 33 | # MobiCore Driver includes |
| 34 | ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/public |
| 35 | # MobiCore KernelApi required incldes |
| 36 | ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreKernelApi/include |
| 37 | ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreKernelApi/public |