blob: 4ba2ff8d5242cb2a7a4ce63cf13ae807a8745c3b [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
16
Aparna Mallavarapu0c357fb2015-04-01 01:58:39 +053017ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053018#ENABLE_PWM_SUPPORT := true
19
20#DEFINES += WITH_DEBUG_DCC=1
21DEFINES += WITH_DEBUG_LOG_BUF=1
22DEFINES += WITH_DEBUG_UART=1
23#DEFINES += WITH_DEBUG_FBCON=1
24DEFINES += DEVICE_TREE=1
25#DEFINES += MMC_BOOT_BAM=1
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053026DEFINES += CRYPTO_BAM=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053027DEFINES += SPMI_CORE_V2=1
28DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
29
Aparna Mallavarapu96cc3352015-03-30 00:48:42 +053030DEFINES += BAM_V170=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053031
32#Enable the feature of long press power on
Aparna Mallavarapueef02d72015-04-11 04:02:55 +053033DEFINES += LONG_PRESS_POWER_ON=1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053034
35#Disable thumb mode
36ENABLE_THUMB := false
37
Aparna Mallavarapu19cf0a72015-03-26 05:57:55 +053038ENABLE_SDHCI_SUPPORT := 1
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053039
40ifeq ($(ENABLE_SDHCI_SUPPORT),1)
41DEFINES += MMC_SDHCI_SUPPORT=1
42endif
43
44#enable power on vibrator feature
45#ENABLE_PON_VIB_SUPPORT := true
46
47ifeq ($(EMMC_BOOT),1)
48DEFINES += _EMMC_BOOT=1
49endif
50
51ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
52DEFINES += PON_VIB_SUPPORT=1
53endif
54
55ifeq ($(ENABLE_SMD_SUPPORT),1)
56DEFINES += SMD_SUPPORT=1
57endif
58
Rami Butsteine51318a2015-05-27 16:23:17 +030059ifeq ($(ENABLE_MDTP_SUPPORT),1)
60DEFINES += MDTP_SUPPORT=1
61DEFINES += MDTP_EFUSE_ADDRESS=0x0C858250 # QFPROM_RAW_QC_SPARE_REG_LSB_ADDR
62DEFINES += MDTP_EFUSE_START=0
63endif
64
Aparna Mallavarapu59914502015-06-01 15:31:28 +053065ENABLE_WDOG_SUPPORT := 1
66ifeq ($(ENABLE_WDOG_SUPPORT),1)
67DEFINES += WDOG_SUPPORT=1
68endif
69
Aparna Mallavarapu01fc3352015-01-19 21:06:16 +053070#SCM call before entering DLOAD mode
71DEFINES += PLATFORM_USE_SCM_DLOAD=1
Aparna Mallavarapueef02d72015-04-11 04:02:55 +053072
73CFLAGS += -Werror
Aparna Mallavarapu330b9342015-05-06 06:46:02 +053074
75DEFINES += USE_TARGET_HS200_DELAY=1