blob: f144fd504e1ce48b2f1c5bf877afe147430680da [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
lijuangb8f6a0d2018-01-16 15:09:10 +080017ifeq ($(ENABLE_DISPLAY),1)
18DEFINES += ENABLE_DISPLAY=1
19DEFINES += DISPLAY_SPLASH_SCREEN=1
20endif
21
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053022ifeq ($(VERIFIED_BOOT),1)
P.V. Phani Kumara053a322015-08-13 18:36:05 +053023ENABLE_SECAPP_LOADER := 1
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053024ENABLE_RPMB_SUPPORT := 1
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +030025ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053026#enable fbcon display menu
27ENABLE_FBCON_DISPLAY_MSG := 1
28endif
29endif
Aparna Mallavarapud5533832015-06-01 20:46:46 +053030
Monika Singhf80e4c72018-03-05 11:39:27 +053031ifeq ($(VERIFIED_BOOT_2),1)
32 ENABLE_SECAPP_LOADER := 1
33 ENABLE_RPMB_SUPPORT := 1
34ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
35#enable fbcon display menu
36 ENABLE_FBCON_DISPLAY_MSG := 1
37endif
38endif
39
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053040ENABLE_SMD_SUPPORT := 1
Rashi Bindra214a7352018-02-02 11:23:18 +053041ENABLE_PWM_SUPPORT := true
Aparna Mallavarapud5533832015-06-01 20:46:46 +053042
43#DEFINES += WITH_DEBUG_DCC=1
44DEFINES += WITH_DEBUG_LOG_BUF=1
45DEFINES += WITH_DEBUG_UART=1
46#DEFINES += WITH_DEBUG_FBCON=1
47DEFINES += DEVICE_TREE=1
48#DEFINES += MMC_BOOT_BAM=1
49DEFINES += CRYPTO_BAM=1
50DEFINES += SPMI_CORE_V2=1
51DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
52
53DEFINES += BAM_V170=1
54
55#Enable the feature of long press power on
c_wufengdc19db42016-01-14 18:11:07 +080056DEFINES += LONG_PRESS_POWER_ON=1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053057
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053058ifeq ($(ENABLE_RPMB_SUPPORT),1)
59DEFINES += USE_RPMB_FOR_DEVINFO=1
60endif
61
Aparna Mallavarapud5533832015-06-01 20:46:46 +053062#Disable thumb mode
63ENABLE_THUMB := false
64
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053065ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053066ENABLE_USB30_SUPPORT := 1
67
68ifeq ($(ENABLE_SDHCI_SUPPORT),1)
69DEFINES += MMC_SDHCI_SUPPORT=1
70endif
71
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053072ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
73DEFINES += FBCON_DISPLAY_MSG=1
74endif
75
Aparna Mallavarapud5533832015-06-01 20:46:46 +053076#enable power on vibrator feature
c_wufengf66e80b2016-01-14 18:22:35 +080077ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapud5533832015-06-01 20:46:46 +053078
79ifeq ($(EMMC_BOOT),1)
80DEFINES += _EMMC_BOOT=1
81endif
82
c_wufengf66e80b2016-01-14 18:22:35 +080083ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
84DEFINES += PON_VIB_SUPPORT=1
85endif
86
Aparna Mallavarapud5533832015-06-01 20:46:46 +053087ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
88DEFINES += PON_VIB_SUPPORT=1
89endif
90
91ifeq ($(ENABLE_SMD_SUPPORT),1)
92DEFINES += SMD_SUPPORT=1
93endif
94
95ifeq ($(ENABLE_USB30_SUPPORT),1)
96DEFINES += USB30_SUPPORT=1
97endif
98
anisha agarwalebc52bc2016-07-08 15:50:00 -070099ifeq ($(APPEND_CMDLINE),1)
100DEFINES += _APPEND_CMDLINE=1
101endif
102
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530103#SCM call before entering DLOAD mode
104DEFINES += PLATFORM_USE_SCM_DLOAD=1
105
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +0530106CFLAGS += -Werror
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530107
c_wufenga9c7a0c2016-02-17 14:03:44 +0800108#enable user force reset feature
109DEFINES += USER_FORCE_RESET_SUPPORT=1
110
P.V. Phani Kumarba58f6a2015-12-27 01:34:32 +0530111# Reset USB clock from target code
112DEFINES += USB_RESET_FROM_CLK=1
113
114DEFINES += USE_TARGET_QMP_SETTINGS=1
115
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530116DEFINES += USE_TARGET_HS200_DELAY=1
117
118#Enable the external reboot functions
P.V. Phani Kumara053a322015-08-13 18:36:05 +0530119ENABLE_REBOOT_MODULE := 1
Amit Blaya5926022016-02-09 15:59:54 +0200120
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530121ifeq ($(VERIFIED_BOOT),1)
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +0300122ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Amit Blay594f1732016-02-09 16:00:05 +0200123#Enable MDTP feature
124ENABLE_MDTP_SUPPORT := 1
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530125endif
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +0300126endif
Amit Blay594f1732016-02-09 16:00:05 +0200127
Amit Blaya5926022016-02-09 15:59:54 +0200128ifeq ($(ENABLE_MDTP_SUPPORT),1)
129DEFINES += MDTP_SUPPORT=1
130endif
lijuang80cab492016-02-29 17:10:40 +0800131
132#enable battery voltage check
133DEFINES += CHECK_BAT_VOLTAGE=1
lijuange0df6862018-02-11 19:32:45 +0800134
135#Enable the external reboot functions
136ENABLE_REBOOT_MODULE := 1
lijuangf35feb42018-02-11 19:43:09 +0800137
138#Use PON register for reboot reason
Monika Singhf80e4c72018-03-05 11:39:27 +0530139DEFINES += USE_PON_REBOOT_REG=1