Unnati Gandhi | 8baacbb | 2014-09-18 12:04:02 +0530 | [diff] [blame] | 1 | # top level project rules for the msm8909 project |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
Unnati Gandhi | 8baacbb | 2014-09-18 12:04:02 +0530 | [diff] [blame] | 5 | TARGET := msm8909 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 6 | |
| 7 | MODULES += app/aboot |
| 8 | |
Unnati Gandhi | 2f4fa55 | 2014-10-13 05:01:05 +0530 | [diff] [blame] | 9 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 10 | DEBUG := 0 |
| 11 | else |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 12 | DEBUG := 1 |
Unnati Gandhi | 2f4fa55 | 2014-10-13 05:01:05 +0530 | [diff] [blame] | 13 | endif |
| 14 | |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 15 | EMMC_BOOT := 1 |
| 16 | |
Unnati Gandhi | e47a9a4 | 2014-11-19 15:13:42 +0530 | [diff] [blame] | 17 | ENABLE_SMD_SUPPORT := 1 |
Shivaraj Shetty | 08ae018 | 2014-11-04 15:05:33 +0530 | [diff] [blame] | 18 | ENABLE_PWM_SUPPORT := true |
Unnati Gandhi | 1d1692c | 2014-11-04 18:39:33 +0530 | [diff] [blame] | 19 | #ENABLE_BOOT_CONFIG_SUPPORT := 1 |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 20 | |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 21 | #DEFINES += WITH_DEBUG_DCC=1 |
Unnati Gandhi | 2f4fa55 | 2014-10-13 05:01:05 +0530 | [diff] [blame] | 22 | DEFINES += WITH_DEBUG_LOG_BUF=1 |
Unnati Gandhi | 2f5317e | 2015-03-12 16:53:57 +0530 | [diff] [blame] | 23 | DEFINES += WITH_DEBUG_UART=1 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 24 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 25 | DEFINES += DEVICE_TREE=1 |
| 26 | #DEFINES += MMC_BOOT_BAM=1 |
| 27 | #DEFINES += CRYPTO_BAM=1 |
Unnati Gandhi | 2f4fa55 | 2014-10-13 05:01:05 +0530 | [diff] [blame] | 28 | DEFINES += SPMI_CORE_V2=1 |
Unnati Gandhi | faa967c | 2014-08-05 18:16:42 +0530 | [diff] [blame] | 29 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 30 | |
Unnati Gandhi | faa967c | 2014-08-05 18:16:42 +0530 | [diff] [blame] | 31 | DEFINES += ABOOT_FORCE_KERNEL_ADDR=0x80008000 |
| 32 | DEFINES += ABOOT_FORCE_RAMDISK_ADDR=0x82000000 |
| 33 | DEFINES += ABOOT_FORCE_TAGS_ADDR=0x81E00000 |
| 34 | DEFINES += ABOOT_FORCE_KERNEL64_ADDR=0x00080000 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 35 | |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 36 | DEFINES += BAM_V170=1 |
Unnati Gandhi | 78fb044 | 2015-05-11 12:55:48 +0530 | [diff] [blame] | 37 | DEFINES += ENABLE_FBCON_LOGGING=1 |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 38 | |
| 39 | #Enable the feature of long press power on |
| 40 | DEFINES += LONG_PRESS_POWER_ON=1 |
| 41 | |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 42 | #Disable thumb mode |
| 43 | ENABLE_THUMB := false |
| 44 | |
Unnati Gandhi | dd5a2ab | 2014-07-15 23:20:30 +0530 | [diff] [blame] | 45 | ENABLE_SDHCI_SUPPORT := 1 |
| 46 | |
| 47 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 48 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 49 | endif |
| 50 | |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 51 | #enable power on vibrator feature |
| 52 | ENABLE_PON_VIB_SUPPORT := true |
| 53 | |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 54 | ifeq ($(EMMC_BOOT),1) |
| 55 | DEFINES += _EMMC_BOOT=1 |
| 56 | endif |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 57 | |
| 58 | ifeq ($(ENABLE_PON_VIB_SUPPORT),true) |
| 59 | DEFINES += PON_VIB_SUPPORT=1 |
| 60 | endif |
| 61 | |
| 62 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 63 | DEFINES += SMD_SUPPORT=1 |
| 64 | endif |
Unnati Gandhi | 1d1692c | 2014-11-04 18:39:33 +0530 | [diff] [blame] | 65 | |
| 66 | ifeq ($(ENABLE_BOOT_CONFIG_SUPPORT),1) |
| 67 | DEFINES += BOOT_CONFIG_SUPPORT=1 |
| 68 | endif |
Aparna Mallavarapu | 6953897 | 2015-03-05 14:22:52 +0530 | [diff] [blame] | 69 | |
| 70 | #SCM call before entering DLOAD mode |
| 71 | DEFINES += PLATFORM_USE_SCM_DLOAD=1 |
lijuang | b66cdb4 | 2015-03-11 17:00:17 +0800 | [diff] [blame] | 72 | |
| 73 | #Enable the external reboot functions |
| 74 | ENABLE_REBOOT_MODULE := 1 |
Channagoud Kadabi | 400bd11 | 2015-08-10 15:38:10 -0700 | [diff] [blame] | 75 | #Use PON register for reboot reason |
| 76 | DEFINES += USE_PON_REBOOT_REG=1 |
lijuang | 36ffff9 | 2015-08-29 16:39:49 +0800 | [diff] [blame] | 77 | |
| 78 | #enable battery voltage check |
| 79 | DEFINES += CHECK_BAT_VOLTAGE=1 |