blob: b118e8fc2a8d3a293ccf9a3efc27bf66255f399e [file] [log] [blame]
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +05301# top level project rules for the MSM8952 project
2#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
5TARGET := msm8952
6
7MODULES += app/aboot
8
9ifeq ($(TARGET_BUILD_VARIANT),user)
10DEBUG := 0
11else
12DEBUG := 1
13endif
14
15EMMC_BOOT := 1
Parth Dixit5b954e02015-10-17 22:20:31 +053016
Parth Dixitf039d6e2015-10-08 15:01:04 +053017
Parth Dixit5b954e02015-10-17 22:20:31 +053018ifeq ($(VERIFIED_BOOT),1)
19ENABLE_MDTP_SUPPORT := 1
Parth Dixitf039d6e2015-10-08 15:01:04 +053020ifeq ($(ENABLE_VBOOT_MOTA_SUPPORT),1)
21DEFINES += VBOOT_MOTA=1
22else
Parth Dixit6e6bad52015-07-30 19:02:38 +053023ENABLE_SECAPP_LOADER := 1
24ENABLE_RPMB_SUPPORT := 1
Parth Dixit5b954e02015-10-17 22:20:31 +053025#enable fbcon display menu
Parth Dixit550ddf32016-11-28 17:00:29 +053026ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
Parth Dixit5b954e02015-10-17 22:20:31 +053027ENABLE_FBCON_DISPLAY_MSG := 1
Parth Dixit550ddf32016-11-28 17:00:29 +053028else
29ENABLE_FBCON_DISPLAY_MSG := 0
30endif #DISPLAY_SPLASH_SCREEN END
31endif #ENABLE_VBOOT_MOTA_SUPPORT END
32endif #VERIFIED_BOOT
Parth Dixit5b954e02015-10-17 22:20:31 +053033
34
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053035
Aparna Mallavarapu0c357fb2015-04-01 01:58:39 +053036ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053037#ENABLE_PWM_SUPPORT := true
38
39#DEFINES += WITH_DEBUG_DCC=1
40DEFINES += WITH_DEBUG_LOG_BUF=1
41DEFINES += WITH_DEBUG_UART=1
42#DEFINES += WITH_DEBUG_FBCON=1
43DEFINES += DEVICE_TREE=1
44#DEFINES += MMC_BOOT_BAM=1
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053045DEFINES += CRYPTO_BAM=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053046DEFINES += SPMI_CORE_V2=1
47DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
Parth Dixit652296c2016-02-23 10:57:04 +053048DEFINES += TARGET_MAX_WLED_STRINGS=2
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053049
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053050DEFINES += BAM_V170=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053051
52#Enable the feature of long press power on
Aparna Mallavarapueef02d72015-04-11 04:02:55 +053053DEFINES += LONG_PRESS_POWER_ON=1
Parth Dixit5b954e02015-10-17 22:20:31 +053054
55ifeq ($(ENABLE_RPMB_SUPPORT),1)
Parth Dixit6e6bad52015-07-30 19:02:38 +053056DEFINES += USE_RPMB_FOR_DEVINFO=1
Parth Dixit5b954e02015-10-17 22:20:31 +053057endif
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053058
59#Disable thumb mode
60ENABLE_THUMB := false
61
Aparna Mallavarapu19cf0a72015-03-26 05:57:55 +053062ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053063
64ifeq ($(ENABLE_SDHCI_SUPPORT),1)
65DEFINES += MMC_SDHCI_SUPPORT=1
66endif
67
Parth Dixit5b954e02015-10-17 22:20:31 +053068
Parth Dixitca8cb792015-08-05 15:35:01 +053069
70ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
71DEFINES += FBCON_DISPLAY_MSG=1
72endif
73
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053074#enable power on vibrator feature
Matthew Qina847a6c2015-06-24 13:47:03 +080075ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053076
77ifeq ($(EMMC_BOOT),1)
78DEFINES += _EMMC_BOOT=1
79endif
80
81ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
82DEFINES += PON_VIB_SUPPORT=1
83endif
84
Matthew Qina847a6c2015-06-24 13:47:03 +080085ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
86DEFINES += PON_VIB_SUPPORT=1
87endif
88
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053089ifeq ($(ENABLE_SMD_SUPPORT),1)
90DEFINES += SMD_SUPPORT=1
91endif
92
Rami Burstein19aedbc2015-06-09 15:25:34 +030093
Rami Butsteine51318a2015-05-27 16:23:17 +030094ifeq ($(ENABLE_MDTP_SUPPORT),1)
95DEFINES += MDTP_SUPPORT=1
Rami Butsteine51318a2015-05-27 16:23:17 +030096endif
97
lijuangc8d186a2016-01-21 17:24:54 +080098#Disable the dload mode
99DEFINES += DISABLE_DLOAD_MODE=0
100
Aparna Mallavarapu1567fec2015-07-03 16:33:29 +0530101ENABLE_WDOG_SUPPORT := 0
Aparna Mallavarapu59914502015-06-01 15:31:28 +0530102ifeq ($(ENABLE_WDOG_SUPPORT),1)
103DEFINES += WDOG_SUPPORT=1
104endif
105
Parth Dixit17b85192016-12-28 15:51:33 +0530106ifeq ($(APPEND_CMDLINE),1)
107DEFINES += _APPEND_CMDLINE=1
108endif
109
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +0530110#SCM call before entering DLOAD mode
111DEFINES += PLATFORM_USE_SCM_DLOAD=1
Aparna Mallavarapueef02d72015-04-11 04:02:55 +0530112
113CFLAGS += -Werror
Aparna Mallavarapu330b9342015-05-06 06:46:02 +0530114
c_wufeng40ef4372015-12-15 16:53:40 +0800115#enable user force reset feature
116DEFINES += USER_FORCE_RESET_SUPPORT=1
117
Aparna Mallavarapu330b9342015-05-06 06:46:02 +0530118DEFINES += USE_TARGET_HS200_DELAY=1
lijuang36ffff92015-08-29 16:39:49 +0800119
120#enable battery voltage check
121DEFINES += CHECK_BAT_VOLTAGE=1