blob: dc275d7125b3e5ab08712a17e86c3f00e163810a [file] [log] [blame]
Aparna Mallavarapud5533832015-06-01 20:46:46 +05301# top level project rules for the MSMTITANIUM project
2#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
5TARGET := msmtitanium
6
7MODULES += app/aboot
8
9ifeq ($(TARGET_BUILD_VARIANT),user)
10DEBUG := 0
11else
12DEBUG := 1
13endif
14
15EMMC_BOOT := 1
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053016
17ifeq ($(VERIFIED_BOOT),1)
18ifeq ($(ENABLE_VBOOT_MOTA_SUPPORT),1)
19DEFINES += VBOOT_MOTA=1
20else
P.V. Phani Kumara053a322015-08-13 18:36:05 +053021ENABLE_SECAPP_LOADER := 1
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053022ENABLE_RPMB_SUPPORT := 1
23#enable fbcon display menu
24ENABLE_FBCON_DISPLAY_MSG := 1
25endif
26endif
Aparna Mallavarapud5533832015-06-01 20:46:46 +053027
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053028ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053029#ENABLE_PWM_SUPPORT := true
30
31#DEFINES += WITH_DEBUG_DCC=1
32DEFINES += WITH_DEBUG_LOG_BUF=1
33DEFINES += WITH_DEBUG_UART=1
34#DEFINES += WITH_DEBUG_FBCON=1
35DEFINES += DEVICE_TREE=1
36#DEFINES += MMC_BOOT_BAM=1
37DEFINES += CRYPTO_BAM=1
38DEFINES += SPMI_CORE_V2=1
39DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
40
41DEFINES += BAM_V170=1
42
43#Enable the feature of long press power on
c_wufengdc19db42016-01-14 18:11:07 +080044DEFINES += LONG_PRESS_POWER_ON=1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053045
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053046ifeq ($(ENABLE_RPMB_SUPPORT),1)
47DEFINES += USE_RPMB_FOR_DEVINFO=1
48endif
49
Aparna Mallavarapud5533832015-06-01 20:46:46 +053050#Disable thumb mode
51ENABLE_THUMB := false
52
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053053ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053054ENABLE_USB30_SUPPORT := 1
55
56ifeq ($(ENABLE_SDHCI_SUPPORT),1)
57DEFINES += MMC_SDHCI_SUPPORT=1
58endif
59
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053060ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
61DEFINES += FBCON_DISPLAY_MSG=1
62endif
63
Aparna Mallavarapud5533832015-06-01 20:46:46 +053064#enable power on vibrator feature
c_wufengf66e80b2016-01-14 18:22:35 +080065ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapud5533832015-06-01 20:46:46 +053066
67ifeq ($(EMMC_BOOT),1)
68DEFINES += _EMMC_BOOT=1
69endif
70
c_wufengf66e80b2016-01-14 18:22:35 +080071ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
72DEFINES += PON_VIB_SUPPORT=1
73endif
74
Aparna Mallavarapud5533832015-06-01 20:46:46 +053075ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
76DEFINES += PON_VIB_SUPPORT=1
77endif
78
79ifeq ($(ENABLE_SMD_SUPPORT),1)
80DEFINES += SMD_SUPPORT=1
81endif
82
83ifeq ($(ENABLE_USB30_SUPPORT),1)
84DEFINES += USB30_SUPPORT=1
85endif
86
87#SCM call before entering DLOAD mode
88DEFINES += PLATFORM_USE_SCM_DLOAD=1
89
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053090CFLAGS += -Werror
Aparna Mallavarapud5533832015-06-01 20:46:46 +053091
P.V. Phani Kumarba58f6a2015-12-27 01:34:32 +053092# Reset USB clock from target code
93DEFINES += USB_RESET_FROM_CLK=1
94
95DEFINES += USE_TARGET_QMP_SETTINGS=1
96
Aparna Mallavarapud5533832015-06-01 20:46:46 +053097DEFINES += USE_TARGET_HS200_DELAY=1
98
99#Enable the external reboot functions
P.V. Phani Kumara053a322015-08-13 18:36:05 +0530100ENABLE_REBOOT_MODULE := 1
Amit Blaya5926022016-02-09 15:59:54 +0200101
Amit Blay594f1732016-02-09 16:00:05 +0200102#Enable MDTP feature
103ENABLE_MDTP_SUPPORT := 1
104
Amit Blaya5926022016-02-09 15:59:54 +0200105ifeq ($(ENABLE_MDTP_SUPPORT),1)
106DEFINES += MDTP_SUPPORT=1
107endif