anisha agarwal | dd04af6 | 2014-11-17 10:57:49 -0800 | [diff] [blame] | 1 | # top level project rules for the mdm9640 project |
Joonwoo Park | 0c484d0 | 2014-04-22 17:53:32 -0700 | [diff] [blame] | 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
anisha agarwal | dd04af6 | 2014-11-17 10:57:49 -0800 | [diff] [blame] | 5 | TARGET := mdm9640 |
Joonwoo Park | 0c484d0 | 2014-04-22 17:53:32 -0700 | [diff] [blame] | 6 | |
Sridhar Parasuram | ed6f1a3 | 2014-11-19 16:20:35 -0800 | [diff] [blame] | 7 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 8 | DEBUG := 0 |
| 9 | else |
Joonwoo Park | 0c484d0 | 2014-04-22 17:53:32 -0700 | [diff] [blame] | 10 | DEBUG := 1 |
Sridhar Parasuram | ed6f1a3 | 2014-11-19 16:20:35 -0800 | [diff] [blame] | 11 | endif |
| 12 | |
Joonwoo Park | 0c484d0 | 2014-04-22 17:53:32 -0700 | [diff] [blame] | 13 | ENABLE_USB30_SUPPORT := 1 |
| 14 | ENABLE_SDHCI_SUPPORT := 1 |
| 15 | ENABLE_BOOT_CONFIG_SUPPORT := 1 |
| 16 | |
| 17 | MODULES += app/aboot |
| 18 | |
| 19 | #DEFINES += WITH_DEBUG_DCC=1 |
| 20 | DEFINES += WITH_DEBUG_UART=1 |
| 21 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 22 | DEFINES += DEVICE_TREE=1 |
| 23 | DEFINES += SPMI_CORE_V2=1 |
Joonwoo Park | 419b94c | 2014-05-15 10:51:19 -0700 | [diff] [blame] | 24 | DEFINES += BAM_V170=1 |
Smita Ghosh | 66b7592 | 2014-09-18 14:19:33 -0700 | [diff] [blame] | 25 | DEFINES += USE_BOOTDEV_CMDLINE=1 |
Channagoud Kadabi | 5e6d83f | 2014-10-10 12:40:05 -0700 | [diff] [blame] | 26 | DEFINES += USE_MDM_BOOT_CFG=1 |
Channagoud Kadabi | de17ba8 | 2014-11-12 13:05:57 -0800 | [diff] [blame] | 27 | DEFINES += USE_TARGET_HS200_CAPS=1 |
Joonwoo Park | 0c484d0 | 2014-04-22 17:53:32 -0700 | [diff] [blame] | 28 | |
| 29 | ifeq ($(ENABLE_USB30_SUPPORT),1) |
| 30 | DEFINES += USB30_SUPPORT=1 |
| 31 | endif |
| 32 | |
| 33 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 34 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 35 | endif |
| 36 | |
| 37 | #disable Thumb mode for the codesourcery/arm-2011.03 toolchain |
| 38 | ENABLE_THUMB := false |
| 39 | |
| 40 | #Override linker for mdm targets |
| 41 | LD := $(TOOLCHAIN_PREFIX)ld.bfd |
anisha agarwal | ffb78ab | 2014-11-18 15:20:31 -0800 | [diff] [blame] | 42 | |
| 43 | ENABLE_SMD_SUPPORT := 1 |
| 44 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 45 | DEFINES += SMD_SUPPORT=1 |
| 46 | endif |
Sridhar Parasuram | 644f7d5 | 2014-12-29 13:49:30 -0800 | [diff] [blame] | 47 | |
| 48 | # Turn on Werror |
| 49 | CFLAGS += -Werror |