vijay kumar | db062a3 | 2015-10-30 12:32:15 +0530 | [diff] [blame] | 1 | # top level project rules for the mdm9607 project |
vijay kumar | 560e77c | 2015-04-20 15:26:29 +0530 | [diff] [blame] | 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
vijay kumar | db062a3 | 2015-10-30 12:32:15 +0530 | [diff] [blame] | 5 | TARGET := mdm9607 |
vijay kumar | 560e77c | 2015-04-20 15:26:29 +0530 | [diff] [blame] | 6 | |
| 7 | MODULES += app/aboot |
| 8 | |
| 9 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 10 | DEBUG := 0 |
| 11 | else |
| 12 | DEBUG := 1 |
| 13 | endif |
| 14 | |
Vijay Kumar Pendoti | 7f0f1e1 | 2016-04-06 20:18:13 +0530 | [diff] [blame] | 15 | ifeq ($(TARGET_BOOTIMG_SIGNED),true) |
| 16 | CFLAGS += -D_SIGNED_KERNEL=1 |
| 17 | endif |
| 18 | |
vijay kumar | 560e77c | 2015-04-20 15:26:29 +0530 | [diff] [blame] | 19 | DEFINES += WITH_DEBUG_UART=1 |
vijay kumar | d7904e7 | 2015-07-23 12:48:03 +0530 | [diff] [blame] | 20 | DEFINES += WITH_DEBUG_LOG_BUF=1 |
vijay kumar | 560e77c | 2015-04-20 15:26:29 +0530 | [diff] [blame] | 21 | DEFINES += DEVICE_TREE=1 |
vijay kumar | d7904e7 | 2015-07-23 12:48:03 +0530 | [diff] [blame] | 22 | DEFINES += CONTIGUOUS_MEMORY=1 |
vijay kumar | 560e77c | 2015-04-20 15:26:29 +0530 | [diff] [blame] | 23 | |
vijay kumar | 20627da | 2015-10-01 13:28:58 +0530 | [diff] [blame] | 24 | DEFINES += SPMI_CORE_V2=1 |
vijay kumar | 560e77c | 2015-04-20 15:26:29 +0530 | [diff] [blame] | 25 | DEFINES += BAM_V170=1 |
| 26 | #Disable thumb mode |
| 27 | ENABLE_THUMB := false |
| 28 | |
| 29 | #Override linker for mdm targets |
| 30 | LD := $(TOOLCHAIN_PREFIX)ld.bfd |
| 31 | |
| 32 | ENABLE_SMD_SUPPORT := 1 |
| 33 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 34 | DEFINES += SMD_SUPPORT=1 |
| 35 | endif |