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