blob: 2dff5df3976fe0463f5e14cb22e2eedb19e7800d [file] [log] [blame]
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +05301# top level project rules for the msm8916 project
2#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
5TARGET := msm8916
6
7MODULES += app/aboot
8
vijay kumar110c63d2014-08-28 16:56:39 +05309ifeq ($(TARGET_BUILD_VARIANT),user)
10DEBUG := 0
11else
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053012DEBUG := 1
vijay kumar110c63d2014-08-28 16:56:39 +053013endif
14
Abhimanyu Kapur35f75672014-03-26 17:46:57 -070015EMMC_BOOT := 1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053016
17#DEFINES += WITH_DEBUG_DCC=1
Aparna Mallavarapucf8b69d2014-04-03 14:45:12 +053018DEFINES += WITH_DEBUG_LOG_BUF=1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053019DEFINES += WITH_DEBUG_UART=1
20#DEFINES += WITH_DEBUG_FBCON=1
21DEFINES += DEVICE_TREE=1
22#DEFINES += MMC_BOOT_BAM=1
Aparna Mallavarapuf2a26b52014-04-22 15:13:47 +053023DEFINES += CRYPTO_BAM=1
Aparna Mallavarapu5397d302014-03-06 04:20:43 +053024DEFINES += SPMI_CORE_V2=1
Aparna Mallavarapuf2a26b52014-04-22 15:13:47 +053025DEFINES += BAM_V170=1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053026DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
27
Matthew Qin1ba2fdc2014-04-08 11:34:38 +080028#Enable the feature of long press power on
Matthew Qinf2cb0752014-08-12 15:32:15 +080029DEFINES += LONG_PRESS_POWER_ON=1
Matthew Qin1ba2fdc2014-04-08 11:34:38 +080030
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053031#Disable thumb mode
32ENABLE_THUMB := false
Aparna Mallavarapu925434e2014-03-28 17:54:57 +053033ENABLE_PWM_SUPPORT := true
Aparna Mallavarapu831a04c2014-02-27 21:51:45 -080034
35ENABLE_SDHCI_SUPPORT := 1
36
37ifeq ($(ENABLE_SDHCI_SUPPORT),1)
38DEFINES += MMC_SDHCI_SUPPORT=1
39endif
Abhimanyu Kapur35f75672014-03-26 17:46:57 -070040
Matthew Qinb0b31642014-04-08 15:22:01 +080041#enable power on vibrator feature
42ENABLE_PON_VIB_SUPPORT := true
43
Abhimanyu Kapur35f75672014-03-26 17:46:57 -070044ifeq ($(EMMC_BOOT),1)
45DEFINES += _EMMC_BOOT=1
46endif
47
Matthew Qinb0b31642014-04-08 15:22:01 +080048ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
49DEFINES += PON_VIB_SUPPORT=1
50endif
Matthew Qin51bcdad2014-07-11 11:27:58 +080051
52#enable user force reset feature
53DEFINES += USER_FORCE_RESET_SUPPORT=1
Aparna Mallavarapu8eb0e4b2015-03-04 21:15:39 +053054
55#SCM call before entering DLOAD mode
56DEFINES += PLATFORM_USE_SCM_DLOAD=1