blob: 20872cc78abe665382c6cd46ad37cab833159c97 [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
Parth Dixitf2eb0bf2018-04-26 14:47:02 +053012ifeq ($(DISABLE_LOGGING_BL),1)
13DEBUG := 0
14else
Aparna Mallavarapud5533832015-06-01 20:46:46 +053015DEBUG := 1
16endif
Parth Dixitf2eb0bf2018-04-26 14:47:02 +053017endif
Aparna Mallavarapud5533832015-06-01 20:46:46 +053018
19EMMC_BOOT := 1
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053020
lijuangb8f6a0d2018-01-16 15:09:10 +080021ifeq ($(ENABLE_DISPLAY),1)
22DEFINES += ENABLE_DISPLAY=1
23DEFINES += DISPLAY_SPLASH_SCREEN=1
24endif
25
P.V. Phani Kumara053a322015-08-13 18:36:05 +053026ENABLE_SECAPP_LOADER := 1
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053027ENABLE_RPMB_SUPPORT := 1
Monika Singh463073c2018-03-27 17:09:52 +053028
29ifeq ($(VERIFIED_BOOT),1)
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +030030ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053031#enable fbcon display menu
32ENABLE_FBCON_DISPLAY_MSG := 1
33endif
34endif
Aparna Mallavarapud5533832015-06-01 20:46:46 +053035
Monika Singhf80e4c72018-03-05 11:39:27 +053036ifeq ($(VERIFIED_BOOT_2),1)
Monika Singhf80e4c72018-03-05 11:39:27 +053037ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
38#enable fbcon display menu
39 ENABLE_FBCON_DISPLAY_MSG := 1
40endif
41endif
42
Mohamed Sunfeerc12196b2018-08-27 19:13:50 +053043#Enable below flag to compile cmnlib64
44DEFINES += ENABLE_CMNLIB64_LOADING=1
45
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053046ENABLE_SMD_SUPPORT := 1
Rashi Bindra214a7352018-02-02 11:23:18 +053047ENABLE_PWM_SUPPORT := true
Aparna Mallavarapud5533832015-06-01 20:46:46 +053048
Mayank Grover64e94f12018-04-17 15:18:49 +053049#Comment this to disable this feature.
50DEFINES += SECURE_CODE_MEM=1
51
Aparna Mallavarapud5533832015-06-01 20:46:46 +053052#DEFINES += WITH_DEBUG_DCC=1
53DEFINES += WITH_DEBUG_LOG_BUF=1
54DEFINES += WITH_DEBUG_UART=1
55#DEFINES += WITH_DEBUG_FBCON=1
56DEFINES += DEVICE_TREE=1
57#DEFINES += MMC_BOOT_BAM=1
58DEFINES += CRYPTO_BAM=1
59DEFINES += SPMI_CORE_V2=1
60DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
61
62DEFINES += BAM_V170=1
63
64#Enable the feature of long press power on
c_wufengdc19db42016-01-14 18:11:07 +080065DEFINES += LONG_PRESS_POWER_ON=1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053066
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053067ifeq ($(ENABLE_RPMB_SUPPORT),1)
68DEFINES += USE_RPMB_FOR_DEVINFO=1
69endif
70
Aparna Mallavarapud5533832015-06-01 20:46:46 +053071#Disable thumb mode
72ENABLE_THUMB := false
73
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +053074ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapud5533832015-06-01 20:46:46 +053075ENABLE_USB30_SUPPORT := 1
76
77ifeq ($(ENABLE_SDHCI_SUPPORT),1)
78DEFINES += MMC_SDHCI_SUPPORT=1
79endif
80
Gaurav Nebhwani8ce294d2016-01-21 18:03:57 +053081ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
82DEFINES += FBCON_DISPLAY_MSG=1
83endif
84
Aparna Mallavarapud5533832015-06-01 20:46:46 +053085#enable power on vibrator feature
c_wufengf66e80b2016-01-14 18:22:35 +080086ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapud5533832015-06-01 20:46:46 +053087
88ifeq ($(EMMC_BOOT),1)
89DEFINES += _EMMC_BOOT=1
90endif
91
c_wufengf66e80b2016-01-14 18:22:35 +080092ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
93DEFINES += PON_VIB_SUPPORT=1
94endif
95
Aparna Mallavarapud5533832015-06-01 20:46:46 +053096ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
97DEFINES += PON_VIB_SUPPORT=1
98endif
99
100ifeq ($(ENABLE_SMD_SUPPORT),1)
101DEFINES += SMD_SUPPORT=1
102endif
103
104ifeq ($(ENABLE_USB30_SUPPORT),1)
105DEFINES += USB30_SUPPORT=1
106endif
107
anisha agarwalebc52bc2016-07-08 15:50:00 -0700108ifeq ($(APPEND_CMDLINE),1)
109DEFINES += _APPEND_CMDLINE=1
110endif
111
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530112#SCM call before entering DLOAD mode
113DEFINES += PLATFORM_USE_SCM_DLOAD=1
114
P.V. Phani Kumar3de1c512015-08-13 18:30:13 +0530115CFLAGS += -Werror
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530116
c_wufenga9c7a0c2016-02-17 14:03:44 +0800117#enable user force reset feature
118DEFINES += USER_FORCE_RESET_SUPPORT=1
119
P.V. Phani Kumarba58f6a2015-12-27 01:34:32 +0530120# Reset USB clock from target code
121DEFINES += USB_RESET_FROM_CLK=1
122
123DEFINES += USE_TARGET_QMP_SETTINGS=1
124
Aparna Mallavarapud5533832015-06-01 20:46:46 +0530125DEFINES += USE_TARGET_HS200_DELAY=1
126
127#Enable the external reboot functions
P.V. Phani Kumara053a322015-08-13 18:36:05 +0530128ENABLE_REBOOT_MODULE := 1
Amit Blaya5926022016-02-09 15:59:54 +0200129
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530130ifeq ($(VERIFIED_BOOT),1)
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +0300131ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Amit Blay594f1732016-02-09 16:00:05 +0200132#Enable MDTP feature
133ENABLE_MDTP_SUPPORT := 1
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530134endif
Vladislav Levenetzda2cc3d2017-04-05 08:54:50 +0300135endif
Amit Blay594f1732016-02-09 16:00:05 +0200136
Amit Blaya5926022016-02-09 15:59:54 +0200137ifeq ($(ENABLE_MDTP_SUPPORT),1)
138DEFINES += MDTP_SUPPORT=1
139endif
lijuang80cab492016-02-29 17:10:40 +0800140
141#enable battery voltage check
142DEFINES += CHECK_BAT_VOLTAGE=1
lijuange0df6862018-02-11 19:32:45 +0800143
144#Enable the external reboot functions
145ENABLE_REBOOT_MODULE := 1
lijuangf35feb42018-02-11 19:43:09 +0800146
147#Use PON register for reboot reason
Monika Singhf80e4c72018-03-05 11:39:27 +0530148DEFINES += USE_PON_REBOOT_REG=1