blob: 24addd86710153dcebf12fad1460db321f6458f6 [file] [log] [blame]
anisha agarwaldd04af62014-11-17 10:57:49 -08001# top level project rules for the mdm9640 project
Joonwoo Park0c484d02014-04-22 17:53:32 -07002#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
anisha agarwaldd04af62014-11-17 10:57:49 -08005TARGET := mdm9640
Joonwoo Park0c484d02014-04-22 17:53:32 -07006
Sridhar Parasuramed6f1a32014-11-19 16:20:35 -08007ifeq ($(TARGET_BUILD_VARIANT),user)
8DEBUG := 0
9else
Joonwoo Park0c484d02014-04-22 17:53:32 -070010DEBUG := 1
Sridhar Parasuramed6f1a32014-11-19 16:20:35 -080011endif
12
Joonwoo Park0c484d02014-04-22 17:53:32 -070013ENABLE_USB30_SUPPORT := 1
14ENABLE_SDHCI_SUPPORT := 1
15ENABLE_BOOT_CONFIG_SUPPORT := 1
16
17MODULES += app/aboot
18
19#DEFINES += WITH_DEBUG_DCC=1
20DEFINES += WITH_DEBUG_UART=1
21#DEFINES += WITH_DEBUG_FBCON=1
22DEFINES += DEVICE_TREE=1
23DEFINES += SPMI_CORE_V2=1
Joonwoo Park419b94c2014-05-15 10:51:19 -070024DEFINES += BAM_V170=1
Smita Ghosh66b75922014-09-18 14:19:33 -070025DEFINES += USE_BOOTDEV_CMDLINE=1
Channagoud Kadabi5e6d83f2014-10-10 12:40:05 -070026DEFINES += USE_MDM_BOOT_CFG=1
Channagoud Kadabide17ba82014-11-12 13:05:57 -080027DEFINES += USE_TARGET_HS200_CAPS=1
Joonwoo Park0c484d02014-04-22 17:53:32 -070028
29ifeq ($(ENABLE_USB30_SUPPORT),1)
30DEFINES += USB30_SUPPORT=1
31endif
32
33ifeq ($(ENABLE_SDHCI_SUPPORT),1)
34DEFINES += MMC_SDHCI_SUPPORT=1
35endif
36
37#disable Thumb mode for the codesourcery/arm-2011.03 toolchain
38ENABLE_THUMB := false
39
40#Override linker for mdm targets
41LD := $(TOOLCHAIN_PREFIX)ld.bfd
anisha agarwalffb78ab2014-11-18 15:20:31 -080042
43ENABLE_SMD_SUPPORT := 1
44ifeq ($(ENABLE_SMD_SUPPORT),1)
45DEFINES += SMD_SUPPORT=1
46endif
Sridhar Parasuram644f7d52014-12-29 13:49:30 -080047
48# Turn on Werror
49CFLAGS += -Werror