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