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