blob: 41f6e92991d49112a277caf98cafa19a5a44bdc5 [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
26ENABLE_FBCON_DISPLAY_MSG := 1
27endif
Parth Dixitf039d6e2015-10-08 15:01:04 +053028endif
Parth Dixit5b954e02015-10-17 22:20:31 +053029
30
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053031
Aparna Mallavarapu0c357fb2015-04-01 01:58:39 +053032ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053033#ENABLE_PWM_SUPPORT := true
34
35#DEFINES += WITH_DEBUG_DCC=1
36DEFINES += WITH_DEBUG_LOG_BUF=1
37DEFINES += WITH_DEBUG_UART=1
38#DEFINES += WITH_DEBUG_FBCON=1
39DEFINES += DEVICE_TREE=1
40#DEFINES += MMC_BOOT_BAM=1
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053041DEFINES += CRYPTO_BAM=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053042DEFINES += SPMI_CORE_V2=1
43DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
44
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053045DEFINES += BAM_V170=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053046
47#Enable the feature of long press power on
Aparna Mallavarapueef02d72015-04-11 04:02:55 +053048DEFINES += LONG_PRESS_POWER_ON=1
Parth Dixit5b954e02015-10-17 22:20:31 +053049
50ifeq ($(ENABLE_RPMB_SUPPORT),1)
Parth Dixit6e6bad52015-07-30 19:02:38 +053051DEFINES += USE_RPMB_FOR_DEVINFO=1
Parth Dixit5b954e02015-10-17 22:20:31 +053052endif
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053053
54#Disable thumb mode
55ENABLE_THUMB := false
56
Aparna Mallavarapu19cf0a72015-03-26 05:57:55 +053057ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053058
59ifeq ($(ENABLE_SDHCI_SUPPORT),1)
60DEFINES += MMC_SDHCI_SUPPORT=1
61endif
62
Parth Dixit5b954e02015-10-17 22:20:31 +053063
Parth Dixitca8cb792015-08-05 15:35:01 +053064
65ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
66DEFINES += FBCON_DISPLAY_MSG=1
67endif
68
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053069#enable power on vibrator feature
Matthew Qina847a6c2015-06-24 13:47:03 +080070ENABLE_HAP_VIB_SUPPORT := true
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053071
72ifeq ($(EMMC_BOOT),1)
73DEFINES += _EMMC_BOOT=1
74endif
75
76ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
77DEFINES += PON_VIB_SUPPORT=1
78endif
79
Matthew Qina847a6c2015-06-24 13:47:03 +080080ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
81DEFINES += PON_VIB_SUPPORT=1
82endif
83
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053084ifeq ($(ENABLE_SMD_SUPPORT),1)
85DEFINES += SMD_SUPPORT=1
86endif
87
Rami Burstein19aedbc2015-06-09 15:25:34 +030088
Rami Butsteine51318a2015-05-27 16:23:17 +030089ifeq ($(ENABLE_MDTP_SUPPORT),1)
90DEFINES += MDTP_SUPPORT=1
Rami Butsteine51318a2015-05-27 16:23:17 +030091endif
92
lijuangc8d186a2016-01-21 17:24:54 +080093#Disable the dload mode
94DEFINES += DISABLE_DLOAD_MODE=0
95
Aparna Mallavarapu1567fec2015-07-03 16:33:29 +053096ENABLE_WDOG_SUPPORT := 0
Aparna Mallavarapu59914502015-06-01 15:31:28 +053097ifeq ($(ENABLE_WDOG_SUPPORT),1)
98DEFINES += WDOG_SUPPORT=1
99endif
100
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +0530101#SCM call before entering DLOAD mode
102DEFINES += PLATFORM_USE_SCM_DLOAD=1
Aparna Mallavarapueef02d72015-04-11 04:02:55 +0530103
104CFLAGS += -Werror
Aparna Mallavarapu330b9342015-05-06 06:46:02 +0530105
c_wufeng40ef4372015-12-15 16:53:40 +0800106#enable user force reset feature
107DEFINES += USER_FORCE_RESET_SUPPORT=1
108
Aparna Mallavarapu330b9342015-05-06 06:46:02 +0530109DEFINES += USE_TARGET_HS200_DELAY=1
lijuang36ffff92015-08-29 16:39:49 +0800110
111#enable battery voltage check
112DEFINES += CHECK_BAT_VOLTAGE=1