blob: cb080037d120ad5884c4114375a22d54d4b12b1d [file] [log] [blame]
Unnati Gandhi8baacbb2014-09-18 12:04:02 +05301# top level project rules for the msm8909 project
Unnati Gandhib2eaaa52014-07-07 11:34:37 +05302#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
Unnati Gandhi8baacbb2014-09-18 12:04:02 +05305TARGET := msm8909
Unnati Gandhib2eaaa52014-07-07 11:34:37 +05306
7MODULES += app/aboot
8
Unnati Gandhi2f4fa552014-10-13 05:01:05 +05309ifeq ($(TARGET_BUILD_VARIANT),user)
10DEBUG := 0
11else
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053012DEBUG := 1
Unnati Gandhi2f4fa552014-10-13 05:01:05 +053013endif
14
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053015EMMC_BOOT := 1
16
Unnati Gandhie47a9a42014-11-19 15:13:42 +053017ENABLE_SMD_SUPPORT := 1
Shivaraj Shetty08ae0182014-11-04 15:05:33 +053018ENABLE_PWM_SUPPORT := true
Unnati Gandhi1d1692c2014-11-04 18:39:33 +053019#ENABLE_BOOT_CONFIG_SUPPORT := 1
Unnati Gandhi4de667f2014-09-19 16:08:18 +053020
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053021#DEFINES += WITH_DEBUG_DCC=1
Unnati Gandhi2f4fa552014-10-13 05:01:05 +053022DEFINES += WITH_DEBUG_LOG_BUF=1
Unnati Gandhi2f5317e2015-03-12 16:53:57 +053023DEFINES += WITH_DEBUG_UART=1
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053024#DEFINES += WITH_DEBUG_FBCON=1
25DEFINES += DEVICE_TREE=1
26#DEFINES += MMC_BOOT_BAM=1
27#DEFINES += CRYPTO_BAM=1
Unnati Gandhi2f4fa552014-10-13 05:01:05 +053028DEFINES += SPMI_CORE_V2=1
Unnati Gandhifaa967c2014-08-05 18:16:42 +053029DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053030
Unnati Gandhifaa967c2014-08-05 18:16:42 +053031DEFINES += ABOOT_FORCE_KERNEL_ADDR=0x80008000
32DEFINES += ABOOT_FORCE_RAMDISK_ADDR=0x82000000
33DEFINES += ABOOT_FORCE_TAGS_ADDR=0x81E00000
34DEFINES += ABOOT_FORCE_KERNEL64_ADDR=0x00080000
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053035
Unnati Gandhi4de667f2014-09-19 16:08:18 +053036DEFINES += BAM_V170=1
Unnati Gandhi78fb0442015-05-11 12:55:48 +053037DEFINES += ENABLE_FBCON_LOGGING=1
Unnati Gandhi4de667f2014-09-19 16:08:18 +053038
39#Enable the feature of long press power on
40DEFINES += LONG_PRESS_POWER_ON=1
41
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053042#Disable thumb mode
43ENABLE_THUMB := false
44
Unnati Gandhidd5a2ab2014-07-15 23:20:30 +053045ENABLE_SDHCI_SUPPORT := 1
46
47ifeq ($(ENABLE_SDHCI_SUPPORT),1)
48DEFINES += MMC_SDHCI_SUPPORT=1
49endif
50
Unnati Gandhi4de667f2014-09-19 16:08:18 +053051#enable power on vibrator feature
52ENABLE_PON_VIB_SUPPORT := true
53
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053054ifeq ($(EMMC_BOOT),1)
55DEFINES += _EMMC_BOOT=1
56endif
Unnati Gandhi4de667f2014-09-19 16:08:18 +053057
58ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
59DEFINES += PON_VIB_SUPPORT=1
60endif
61
62ifeq ($(ENABLE_SMD_SUPPORT),1)
63DEFINES += SMD_SUPPORT=1
64endif
Unnati Gandhi1d1692c2014-11-04 18:39:33 +053065
66ifeq ($(ENABLE_BOOT_CONFIG_SUPPORT),1)
67DEFINES += BOOT_CONFIG_SUPPORT=1
68endif
Aparna Mallavarapu69538972015-03-05 14:22:52 +053069
70#SCM call before entering DLOAD mode
71DEFINES += PLATFORM_USE_SCM_DLOAD=1
lijuangb66cdb42015-03-11 17:00:17 +080072
73#Enable the external reboot functions
74ENABLE_REBOOT_MODULE := 1
Channagoud Kadabi400bd112015-08-10 15:38:10 -070075#Use PON register for reboot reason
76DEFINES += USE_PON_REBOOT_REG=1
lijuang36ffff92015-08-29 16:39:49 +080077
78#enable battery voltage check
79DEFINES += CHECK_BAT_VOLTAGE=1