blob: 9a6397f5ea049a1bcade446b645ecbe810ba61fc [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
17ifeq ($(VERIFIED_BOOT),1)
18ENABLE_MDTP_SUPPORT := 1
Parth Dixit6e6bad52015-07-30 19:02:38 +053019ENABLE_SECAPP_LOADER := 1
20ENABLE_RPMB_SUPPORT := 1
Parth Dixit5b954e02015-10-17 22:20:31 +053021#enable fbcon display menu
22ENABLE_FBCON_DISPLAY_MSG := 1
23endif
24
25
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053026
Aparna Mallavarapu0c357fb2015-04-01 01:58:39 +053027ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053028#ENABLE_PWM_SUPPORT := true
29
30#DEFINES += WITH_DEBUG_DCC=1
31DEFINES += WITH_DEBUG_LOG_BUF=1
32DEFINES += WITH_DEBUG_UART=1
33#DEFINES += WITH_DEBUG_FBCON=1
34DEFINES += DEVICE_TREE=1
35#DEFINES += MMC_BOOT_BAM=1
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053036DEFINES += CRYPTO_BAM=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053037DEFINES += SPMI_CORE_V2=1
38DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
39
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053040DEFINES += BAM_V170=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053041
42#Enable the feature of long press power on
Aparna Mallavarapueef02d72015-04-11 04:02:55 +053043DEFINES += LONG_PRESS_POWER_ON=1
Parth Dixit5b954e02015-10-17 22:20:31 +053044
45ifeq ($(ENABLE_RPMB_SUPPORT),1)
Parth Dixit6e6bad52015-07-30 19:02:38 +053046DEFINES += USE_RPMB_FOR_DEVINFO=1
Parth Dixit5b954e02015-10-17 22:20:31 +053047endif
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053048
49#Disable thumb mode
50ENABLE_THUMB := false
51
Aparna Mallavarapu19cf0a72015-03-26 05:57:55 +053052ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053053
54ifeq ($(ENABLE_SDHCI_SUPPORT),1)
55DEFINES += MMC_SDHCI_SUPPORT=1
56endif
57
Parth Dixit5b954e02015-10-17 22:20:31 +053058
Parth Dixitca8cb792015-08-05 15:35:01 +053059
60ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
61DEFINES += FBCON_DISPLAY_MSG=1
62endif
63
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053064#enable power on vibrator feature
Matthew Qina847a6c2015-06-24 13:47:03 +080065ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053066
67ifeq ($(EMMC_BOOT),1)
68DEFINES += _EMMC_BOOT=1
69endif
70
71ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
72DEFINES += PON_VIB_SUPPORT=1
73endif
74
Matthew Qina847a6c2015-06-24 13:47:03 +080075ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
76DEFINES += PON_VIB_SUPPORT=1
77endif
78
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053079ifeq ($(ENABLE_SMD_SUPPORT),1)
80DEFINES += SMD_SUPPORT=1
81endif
82
Rami Burstein19aedbc2015-06-09 15:25:34 +030083
Rami Butsteine51318a2015-05-27 16:23:17 +030084ifeq ($(ENABLE_MDTP_SUPPORT),1)
85DEFINES += MDTP_SUPPORT=1
Rami Butsteine51318a2015-05-27 16:23:17 +030086endif
87
Aparna Mallavarapu1567fec2015-07-03 16:33:29 +053088ENABLE_WDOG_SUPPORT := 0
Aparna Mallavarapu59914502015-06-01 15:31:28 +053089ifeq ($(ENABLE_WDOG_SUPPORT),1)
90DEFINES += WDOG_SUPPORT=1
91endif
92
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053093#SCM call before entering DLOAD mode
94DEFINES += PLATFORM_USE_SCM_DLOAD=1
Aparna Mallavarapueef02d72015-04-11 04:02:55 +053095
96CFLAGS += -Werror
Aparna Mallavarapu330b9342015-05-06 06:46:02 +053097
98DEFINES += USE_TARGET_HS200_DELAY=1
lijuang36ffff92015-08-29 16:39:49 +080099
100#enable battery voltage check
101DEFINES += CHECK_BAT_VOLTAGE=1