Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 1 | # top level project rules for the MSM8952 project |
| 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
| 5 | TARGET := msm8952 |
| 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 |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 16 | |
lijuang | 3dcb6fe | 2018-03-26 19:26:57 +0800 | [diff] [blame] | 17 | ifeq ($(ENABLE_DISPLAY),1) |
| 18 | DEFINES += ENABLE_DISPLAY=1 |
| 19 | DEFINES += DISPLAY_SPLASH_SCREEN=1 |
| 20 | endif |
Parth Dixit | f039d6e | 2015-10-08 15:01:04 +0530 | [diff] [blame] | 21 | |
Parth Dixit | 6e6bad5 | 2015-07-30 19:02:38 +0530 | [diff] [blame] | 22 | ENABLE_SECAPP_LOADER := 1 |
| 23 | ENABLE_RPMB_SUPPORT := 1 |
Monika Singh | 851f386 | 2018-04-19 10:27:26 +0530 | [diff] [blame] | 24 | |
| 25 | ifeq ($(VERIFIED_BOOT),1) |
| 26 | ENABLE_MDTP_SUPPORT := 1 |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 27 | #enable fbcon display menu |
Parth Dixit | 550ddf3 | 2016-11-28 17:00:29 +0530 | [diff] [blame] | 28 | ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES))) |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 29 | ENABLE_FBCON_DISPLAY_MSG := 1 |
Parth Dixit | 550ddf3 | 2016-11-28 17:00:29 +0530 | [diff] [blame] | 30 | else |
| 31 | ENABLE_FBCON_DISPLAY_MSG := 0 |
| 32 | endif #DISPLAY_SPLASH_SCREEN END |
Parth Dixit | 550ddf3 | 2016-11-28 17:00:29 +0530 | [diff] [blame] | 33 | endif #VERIFIED_BOOT |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 34 | |
Monika Singh | 851f386 | 2018-04-19 10:27:26 +0530 | [diff] [blame] | 35 | ifeq ($(VERIFIED_BOOT_2),1) |
| 36 | ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES))) |
| 37 | #enable fbcon display menu |
| 38 | ENABLE_FBCON_DISPLAY_MSG := 1 |
| 39 | endif |
| 40 | endif |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 41 | |
Mohamed Sunfeer | 5db44f5 | 2018-08-27 19:10:54 +0530 | [diff] [blame] | 42 | #Enable below flag to compile cmnlib64 |
| 43 | DEFINES += ENABLE_CMNLIB64_LOADING=1 |
| 44 | |
Aparna Mallavarapu | 0c357fb | 2015-04-01 01:58:39 +0530 | [diff] [blame] | 45 | ENABLE_SMD_SUPPORT := 1 |
Lei Chen | 2c11b46 | 2018-04-11 18:42:37 +0800 | [diff] [blame] | 46 | ENABLE_PWM_SUPPORT := true |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 47 | |
| 48 | #DEFINES += WITH_DEBUG_DCC=1 |
| 49 | DEFINES += WITH_DEBUG_LOG_BUF=1 |
| 50 | DEFINES += WITH_DEBUG_UART=1 |
| 51 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 52 | DEFINES += DEVICE_TREE=1 |
| 53 | #DEFINES += MMC_BOOT_BAM=1 |
Aparna Mallavarapu | 96cc335 | 2015-03-30 00:48:42 +0530 | [diff] [blame] | 54 | DEFINES += CRYPTO_BAM=1 |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 55 | DEFINES += SPMI_CORE_V2=1 |
| 56 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
Parth Dixit | 652296c | 2016-02-23 10:57:04 +0530 | [diff] [blame] | 57 | DEFINES += TARGET_MAX_WLED_STRINGS=2 |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 58 | |
Aparna Mallavarapu | 96cc335 | 2015-03-30 00:48:42 +0530 | [diff] [blame] | 59 | DEFINES += BAM_V170=1 |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 60 | |
| 61 | #Enable the feature of long press power on |
Aparna Mallavarapu | eef02d7 | 2015-04-11 04:02:55 +0530 | [diff] [blame] | 62 | DEFINES += LONG_PRESS_POWER_ON=1 |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 63 | |
| 64 | ifeq ($(ENABLE_RPMB_SUPPORT),1) |
Parth Dixit | 6e6bad5 | 2015-07-30 19:02:38 +0530 | [diff] [blame] | 65 | DEFINES += USE_RPMB_FOR_DEVINFO=1 |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 66 | endif |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 67 | |
| 68 | #Disable thumb mode |
| 69 | ENABLE_THUMB := false |
| 70 | |
Aparna Mallavarapu | 19cf0a7 | 2015-03-26 05:57:55 +0530 | [diff] [blame] | 71 | ENABLE_SDHCI_SUPPORT := 1 |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 72 | |
| 73 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 74 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 75 | endif |
| 76 | |
Parth Dixit | 5b954e0 | 2015-10-17 22:20:31 +0530 | [diff] [blame] | 77 | |
Parth Dixit | ca8cb79 | 2015-08-05 15:35:01 +0530 | [diff] [blame] | 78 | |
| 79 | ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1) |
| 80 | DEFINES += FBCON_DISPLAY_MSG=1 |
| 81 | endif |
| 82 | |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 83 | #enable power on vibrator feature |
Matthew Qin | a847a6c | 2015-06-24 13:47:03 +0800 | [diff] [blame] | 84 | ENABLE_HAP_VIB_SUPPORT := true |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 85 | |
| 86 | ifeq ($(EMMC_BOOT),1) |
| 87 | DEFINES += _EMMC_BOOT=1 |
| 88 | endif |
| 89 | |
| 90 | ifeq ($(ENABLE_PON_VIB_SUPPORT),true) |
| 91 | DEFINES += PON_VIB_SUPPORT=1 |
| 92 | endif |
| 93 | |
Matthew Qin | a847a6c | 2015-06-24 13:47:03 +0800 | [diff] [blame] | 94 | ifeq ($(ENABLE_HAP_VIB_SUPPORT),true) |
| 95 | DEFINES += PON_VIB_SUPPORT=1 |
| 96 | endif |
| 97 | |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 98 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 99 | DEFINES += SMD_SUPPORT=1 |
| 100 | endif |
| 101 | |
Umang Chheda | eb22139 | 2019-11-15 11:19:16 +0530 | [diff] [blame] | 102 | #Enable Weak battery charging feature |
| 103 | ENABLE_WEAK_BATT_CHRG_SUPPORT := 1 |
| 104 | |
| 105 | ifeq ($(ENABLE_WEAK_BATT_CHRG_SUPPORT),1) |
Umang Chheda | 4c140de | 2019-12-19 14:30:38 +0530 | [diff] [blame] | 106 | DEFINES += ENABLE_WBC=1 |
Umang Chheda | eb22139 | 2019-11-15 11:19:16 +0530 | [diff] [blame] | 107 | DEFINES += LK_BATT_VOLT_THRESHOLD=3400000 |
| 108 | endif |
Rami Burstein | 19aedbc | 2015-06-09 15:25:34 +0300 | [diff] [blame] | 109 | |
Rami Butstein | e51318a | 2015-05-27 16:23:17 +0300 | [diff] [blame] | 110 | ifeq ($(ENABLE_MDTP_SUPPORT),1) |
| 111 | DEFINES += MDTP_SUPPORT=1 |
Rami Butstein | e51318a | 2015-05-27 16:23:17 +0300 | [diff] [blame] | 112 | endif |
| 113 | |
lijuang | c8d186a | 2016-01-21 17:24:54 +0800 | [diff] [blame] | 114 | #Disable the dload mode |
| 115 | DEFINES += DISABLE_DLOAD_MODE=0 |
| 116 | |
Aparna Mallavarapu | 1567fec | 2015-07-03 16:33:29 +0530 | [diff] [blame] | 117 | ENABLE_WDOG_SUPPORT := 0 |
Aparna Mallavarapu | 5991450 | 2015-06-01 15:31:28 +0530 | [diff] [blame] | 118 | ifeq ($(ENABLE_WDOG_SUPPORT),1) |
| 119 | DEFINES += WDOG_SUPPORT=1 |
| 120 | endif |
| 121 | |
Parth Dixit | 17b8519 | 2016-12-28 15:51:33 +0530 | [diff] [blame] | 122 | ifeq ($(APPEND_CMDLINE),1) |
| 123 | DEFINES += _APPEND_CMDLINE=1 |
| 124 | endif |
| 125 | |
Aparna Mallavarapu | 01fc335 | 2015-01-19 21:06:16 +0530 | [diff] [blame] | 126 | #SCM call before entering DLOAD mode |
| 127 | DEFINES += PLATFORM_USE_SCM_DLOAD=1 |
Aparna Mallavarapu | eef02d7 | 2015-04-11 04:02:55 +0530 | [diff] [blame] | 128 | |
| 129 | CFLAGS += -Werror |
Aparna Mallavarapu | 330b934 | 2015-05-06 06:46:02 +0530 | [diff] [blame] | 130 | |
c_wufeng | 40ef437 | 2015-12-15 16:53:40 +0800 | [diff] [blame] | 131 | #enable user force reset feature |
| 132 | DEFINES += USER_FORCE_RESET_SUPPORT=1 |
| 133 | |
Aparna Mallavarapu | 330b934 | 2015-05-06 06:46:02 +0530 | [diff] [blame] | 134 | DEFINES += USE_TARGET_HS200_DELAY=1 |
lijuang | 36ffff9 | 2015-08-29 16:39:49 +0800 | [diff] [blame] | 135 | |
| 136 | #enable battery voltage check |
| 137 | DEFINES += CHECK_BAT_VOLTAGE=1 |
Maria Yu | 3ce8b63 | 2018-03-23 13:26:31 +0530 | [diff] [blame] | 138 | |
| 139 | #Use PON register for reboot reason |
| 140 | ENABLE_REBOOT_MODULE := 1 |
| 141 | DEFINES += USE_PON_REBOOT_REG=1 |