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