Gaurav Nebhwani | 6c945a4 | 2016-02-16 17:26:51 +0530 | [diff] [blame] | 1 | # top level project rules for the MSM8953 project |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
Gaurav Nebhwani | 6c945a4 | 2016-02-16 17:26:51 +0530 | [diff] [blame] | 5 | TARGET := msm8953 |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +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 | |
| 15 | EMMC_BOOT := 1 |
Gaurav Nebhwani | 8ce294d | 2016-01-21 18:03:57 +0530 | [diff] [blame] | 16 | |
| 17 | ifeq ($(VERIFIED_BOOT),1) |
| 18 | ifeq ($(ENABLE_VBOOT_MOTA_SUPPORT),1) |
| 19 | DEFINES += VBOOT_MOTA=1 |
| 20 | else |
P.V. Phani Kumar | a053a32 | 2015-08-13 18:36:05 +0530 | [diff] [blame] | 21 | ENABLE_SECAPP_LOADER := 1 |
Gaurav Nebhwani | 8ce294d | 2016-01-21 18:03:57 +0530 | [diff] [blame] | 22 | ENABLE_RPMB_SUPPORT := 1 |
| 23 | #enable fbcon display menu |
| 24 | ENABLE_FBCON_DISPLAY_MSG := 1 |
| 25 | endif |
| 26 | endif |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 27 | |
P.V. Phani Kumar | 3de1c51 | 2015-08-13 18:30:13 +0530 | [diff] [blame] | 28 | ENABLE_SMD_SUPPORT := 1 |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 29 | #ENABLE_PWM_SUPPORT := true |
| 30 | |
| 31 | #DEFINES += WITH_DEBUG_DCC=1 |
| 32 | DEFINES += WITH_DEBUG_LOG_BUF=1 |
| 33 | DEFINES += WITH_DEBUG_UART=1 |
| 34 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 35 | DEFINES += DEVICE_TREE=1 |
| 36 | #DEFINES += MMC_BOOT_BAM=1 |
| 37 | DEFINES += CRYPTO_BAM=1 |
| 38 | DEFINES += SPMI_CORE_V2=1 |
| 39 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
| 40 | |
| 41 | DEFINES += BAM_V170=1 |
| 42 | |
| 43 | #Enable the feature of long press power on |
c_wufeng | dc19db4 | 2016-01-14 18:11:07 +0800 | [diff] [blame] | 44 | DEFINES += LONG_PRESS_POWER_ON=1 |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 45 | |
Gaurav Nebhwani | 8ce294d | 2016-01-21 18:03:57 +0530 | [diff] [blame] | 46 | ifeq ($(ENABLE_RPMB_SUPPORT),1) |
| 47 | DEFINES += USE_RPMB_FOR_DEVINFO=1 |
| 48 | endif |
| 49 | |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 50 | #Disable thumb mode |
| 51 | ENABLE_THUMB := false |
| 52 | |
P.V. Phani Kumar | 3de1c51 | 2015-08-13 18:30:13 +0530 | [diff] [blame] | 53 | ENABLE_SDHCI_SUPPORT := 1 |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 54 | ENABLE_USB30_SUPPORT := 1 |
| 55 | |
| 56 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 57 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 58 | endif |
| 59 | |
Gaurav Nebhwani | 8ce294d | 2016-01-21 18:03:57 +0530 | [diff] [blame] | 60 | ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1) |
| 61 | DEFINES += FBCON_DISPLAY_MSG=1 |
| 62 | endif |
| 63 | |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 64 | #enable power on vibrator feature |
c_wufeng | f66e80b | 2016-01-14 18:22:35 +0800 | [diff] [blame] | 65 | ENABLE_HAP_VIB_SUPPORT := true |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 66 | |
| 67 | ifeq ($(EMMC_BOOT),1) |
| 68 | DEFINES += _EMMC_BOOT=1 |
| 69 | endif |
| 70 | |
c_wufeng | f66e80b | 2016-01-14 18:22:35 +0800 | [diff] [blame] | 71 | ifeq ($(ENABLE_HAP_VIB_SUPPORT),true) |
| 72 | DEFINES += PON_VIB_SUPPORT=1 |
| 73 | endif |
| 74 | |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 75 | ifeq ($(ENABLE_PON_VIB_SUPPORT),true) |
| 76 | DEFINES += PON_VIB_SUPPORT=1 |
| 77 | endif |
| 78 | |
| 79 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 80 | DEFINES += SMD_SUPPORT=1 |
| 81 | endif |
| 82 | |
| 83 | ifeq ($(ENABLE_USB30_SUPPORT),1) |
| 84 | DEFINES += USB30_SUPPORT=1 |
| 85 | endif |
| 86 | |
anisha agarwal | ebc52bc | 2016-07-08 15:50:00 -0700 | [diff] [blame] | 87 | ifeq ($(APPEND_CMDLINE),1) |
| 88 | DEFINES += _APPEND_CMDLINE=1 |
| 89 | endif |
| 90 | |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 91 | #SCM call before entering DLOAD mode |
| 92 | DEFINES += PLATFORM_USE_SCM_DLOAD=1 |
| 93 | |
P.V. Phani Kumar | 3de1c51 | 2015-08-13 18:30:13 +0530 | [diff] [blame] | 94 | CFLAGS += -Werror |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 95 | |
c_wufeng | a9c7a0c | 2016-02-17 14:03:44 +0800 | [diff] [blame] | 96 | #enable user force reset feature |
| 97 | DEFINES += USER_FORCE_RESET_SUPPORT=1 |
| 98 | |
P.V. Phani Kumar | ba58f6a | 2015-12-27 01:34:32 +0530 | [diff] [blame] | 99 | # Reset USB clock from target code |
| 100 | DEFINES += USB_RESET_FROM_CLK=1 |
| 101 | |
| 102 | DEFINES += USE_TARGET_QMP_SETTINGS=1 |
| 103 | |
Aparna Mallavarapu | d553383 | 2015-06-01 20:46:46 +0530 | [diff] [blame] | 104 | DEFINES += USE_TARGET_HS200_DELAY=1 |
| 105 | |
| 106 | #Enable the external reboot functions |
P.V. Phani Kumar | a053a32 | 2015-08-13 18:36:05 +0530 | [diff] [blame] | 107 | ENABLE_REBOOT_MODULE := 1 |
Amit Blay | a592602 | 2016-02-09 15:59:54 +0200 | [diff] [blame] | 108 | |
Sourabh Banerjee | c5ba969 | 2016-04-06 17:14:37 +0530 | [diff] [blame] | 109 | ifeq ($(VERIFIED_BOOT),1) |
Amit Blay | 594f173 | 2016-02-09 16:00:05 +0200 | [diff] [blame] | 110 | #Enable MDTP feature |
| 111 | ENABLE_MDTP_SUPPORT := 1 |
Sourabh Banerjee | c5ba969 | 2016-04-06 17:14:37 +0530 | [diff] [blame] | 112 | endif |
Amit Blay | 594f173 | 2016-02-09 16:00:05 +0200 | [diff] [blame] | 113 | |
Amit Blay | a592602 | 2016-02-09 15:59:54 +0200 | [diff] [blame] | 114 | ifeq ($(ENABLE_MDTP_SUPPORT),1) |
| 115 | DEFINES += MDTP_SUPPORT=1 |
| 116 | endif |
lijuang | 80cab49 | 2016-02-29 17:10:40 +0800 | [diff] [blame] | 117 | |
| 118 | #enable battery voltage check |
| 119 | DEFINES += CHECK_BAT_VOLTAGE=1 |