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