blob: 2359c74987952bab6f3c64194e324e803f6f2ccd [file] [log] [blame]
Gaurav Nebhwani6c945a42016-02-16 17:26:51 +05301# top level project rules for the MSM8953 project
Aparna Mallavarapud5533832015-06-01 20:46:46 +05302#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
Gaurav Nebhwani6c945a42016-02-16 17:26:51 +05305TARGET := msm8953
Aparna Mallavarapud5533832015-06-01 20:46:46 +05306
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
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +030023ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053024#enable fbcon display menu
25ENABLE_FBCON_DISPLAY_MSG := 1
26endif
27endif
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +030028endif
Aparna Mallavarapud5533832015-06-01 20:46:46 +053029
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053030ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053031#ENABLE_PWM_SUPPORT := true
32
33#DEFINES += WITH_DEBUG_DCC=1
34DEFINES += WITH_DEBUG_LOG_BUF=1
35DEFINES += WITH_DEBUG_UART=1
36#DEFINES += WITH_DEBUG_FBCON=1
37DEFINES += DEVICE_TREE=1
38#DEFINES += MMC_BOOT_BAM=1
39DEFINES += CRYPTO_BAM=1
40DEFINES += SPMI_CORE_V2=1
41DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
42
43DEFINES += BAM_V170=1
44
45#Enable the feature of long press power on
c_wufengdc19db42016-01-14 18:11:07 +080046DEFINES += LONG_PRESS_POWER_ON=1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053047
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053048ifeq ($(ENABLE_RPMB_SUPPORT),1)
49DEFINES += USE_RPMB_FOR_DEVINFO=1
50endif
51
Aparna Mallavarapud5533832015-06-01 20:46:46 +053052#Disable thumb mode
53ENABLE_THUMB := false
54
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053055ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053056ENABLE_USB30_SUPPORT := 1
57
58ifeq ($(ENABLE_SDHCI_SUPPORT),1)
59DEFINES += MMC_SDHCI_SUPPORT=1
60endif
61
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053062ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
63DEFINES += FBCON_DISPLAY_MSG=1
64endif
65
Aparna Mallavarapud5533832015-06-01 20:46:46 +053066#enable power on vibrator feature
c_wufengf66e80b2016-01-14 18:22:35 +080067ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapud5533832015-06-01 20:46:46 +053068
69ifeq ($(EMMC_BOOT),1)
70DEFINES += _EMMC_BOOT=1
71endif
72
c_wufengf66e80b2016-01-14 18:22:35 +080073ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
74DEFINES += PON_VIB_SUPPORT=1
75endif
76
Aparna Mallavarapud5533832015-06-01 20:46:46 +053077ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
78DEFINES += PON_VIB_SUPPORT=1
79endif
80
81ifeq ($(ENABLE_SMD_SUPPORT),1)
82DEFINES += SMD_SUPPORT=1
83endif
84
85ifeq ($(ENABLE_USB30_SUPPORT),1)
86DEFINES += USB30_SUPPORT=1
87endif
88
anisha agarwalebc52bc2016-07-08 15:50:00 -070089ifeq ($(APPEND_CMDLINE),1)
90DEFINES += _APPEND_CMDLINE=1
91endif
92
Aparna Mallavarapud5533832015-06-01 20:46:46 +053093#SCM call before entering DLOAD mode
94DEFINES += PLATFORM_USE_SCM_DLOAD=1
95
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053096CFLAGS += -Werror
Aparna Mallavarapud5533832015-06-01 20:46:46 +053097
c_wufenga9c7a0c2016-02-17 14:03:44 +080098#enable user force reset feature
99DEFINES += USER_FORCE_RESET_SUPPORT=1
100
P.V. Phani Kumarba58f6a2015-12-27 01:34:32 +0530101# Reset USB clock from target code
102DEFINES += USB_RESET_FROM_CLK=1
103
104DEFINES += USE_TARGET_QMP_SETTINGS=1
105
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530106DEFINES += USE_TARGET_HS200_DELAY=1
107
108#Enable the external reboot functions
P.V. Phani Kumara053a322015-08-13 18:36:05 +0530109ENABLE_REBOOT_MODULE := 1
Amit Blaya5926022016-02-09 15:59:54 +0200110
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530111ifeq ($(VERIFIED_BOOT),1)
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +0300112ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Amit Blay594f1732016-02-09 16:00:05 +0200113#Enable MDTP feature
114ENABLE_MDTP_SUPPORT := 1
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530115endif
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +0300116endif
Amit Blay594f1732016-02-09 16:00:05 +0200117
Amit Blaya5926022016-02-09 15:59:54 +0200118ifeq ($(ENABLE_MDTP_SUPPORT),1)
119DEFINES += MDTP_SUPPORT=1
120endif
lijuang80cab492016-02-29 17:10:40 +0800121
122#enable battery voltage check
123DEFINES += CHECK_BAT_VOLTAGE=1