Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 1 | # top level project rules for the msm8916 project |
| 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
| 5 | TARGET := msm8916 |
| 6 | |
| 7 | MODULES += app/aboot |
| 8 | |
vijay kumar | 110c63d | 2014-08-28 16:56:39 +0530 | [diff] [blame] | 9 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 10 | DEBUG := 0 |
| 11 | else |
Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 12 | DEBUG := 1 |
vijay kumar | 110c63d | 2014-08-28 16:56:39 +0530 | [diff] [blame] | 13 | endif |
| 14 | |
Abhimanyu Kapur | 35f7567 | 2014-03-26 17:46:57 -0700 | [diff] [blame] | 15 | EMMC_BOOT := 1 |
Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 16 | |
| 17 | #DEFINES += WITH_DEBUG_DCC=1 |
Aparna Mallavarapu | cf8b69d | 2014-04-03 14:45:12 +0530 | [diff] [blame] | 18 | DEFINES += WITH_DEBUG_LOG_BUF=1 |
Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 19 | DEFINES += WITH_DEBUG_UART=1 |
| 20 | #DEFINES += WITH_DEBUG_FBCON=1 |
vijay kumar | 75e9d69 | 2015-04-24 16:09:51 +0530 | [diff] [blame] | 21 | DEFINES += ENABLE_FBCON_LOGGING=1 |
Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 22 | DEFINES += DEVICE_TREE=1 |
| 23 | #DEFINES += MMC_BOOT_BAM=1 |
Aparna Mallavarapu | f2a26b5 | 2014-04-22 15:13:47 +0530 | [diff] [blame] | 24 | DEFINES += CRYPTO_BAM=1 |
Aparna Mallavarapu | 5397d30 | 2014-03-06 04:20:43 +0530 | [diff] [blame] | 25 | DEFINES += SPMI_CORE_V2=1 |
Aparna Mallavarapu | f2a26b5 | 2014-04-22 15:13:47 +0530 | [diff] [blame] | 26 | DEFINES += BAM_V170=1 |
Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 27 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
| 28 | |
Matthew Qin | 1ba2fdc | 2014-04-08 11:34:38 +0800 | [diff] [blame] | 29 | #Enable the feature of long press power on |
Matthew Qin | f2cb075 | 2014-08-12 15:32:15 +0800 | [diff] [blame] | 30 | DEFINES += LONG_PRESS_POWER_ON=1 |
Matthew Qin | 1ba2fdc | 2014-04-08 11:34:38 +0800 | [diff] [blame] | 31 | |
Aparna Mallavarapu | 13c50bd | 2013-10-19 15:06:18 +0530 | [diff] [blame] | 32 | #Disable thumb mode |
| 33 | ENABLE_THUMB := false |
Aparna Mallavarapu | 925434e | 2014-03-28 17:54:57 +0530 | [diff] [blame] | 34 | ENABLE_PWM_SUPPORT := true |
Aparna Mallavarapu | 831a04c | 2014-02-27 21:51:45 -0800 | [diff] [blame] | 35 | |
| 36 | ENABLE_SDHCI_SUPPORT := 1 |
| 37 | |
| 38 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 39 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 40 | endif |
Abhimanyu Kapur | 35f7567 | 2014-03-26 17:46:57 -0700 | [diff] [blame] | 41 | |
Matthew Qin | b0b3164 | 2014-04-08 15:22:01 +0800 | [diff] [blame] | 42 | #enable power on vibrator feature |
| 43 | ENABLE_PON_VIB_SUPPORT := true |
| 44 | |
Abhimanyu Kapur | 35f7567 | 2014-03-26 17:46:57 -0700 | [diff] [blame] | 45 | ifeq ($(EMMC_BOOT),1) |
| 46 | DEFINES += _EMMC_BOOT=1 |
| 47 | endif |
| 48 | |
Matthew Qin | b0b3164 | 2014-04-08 15:22:01 +0800 | [diff] [blame] | 49 | ifeq ($(ENABLE_PON_VIB_SUPPORT),true) |
| 50 | DEFINES += PON_VIB_SUPPORT=1 |
| 51 | endif |
Matthew Qin | 51bcdad | 2014-07-11 11:27:58 +0800 | [diff] [blame] | 52 | |
| 53 | #enable user force reset feature |
| 54 | DEFINES += USER_FORCE_RESET_SUPPORT=1 |
Aparna Mallavarapu | 8eb0e4b | 2015-03-04 21:15:39 +0530 | [diff] [blame] | 55 | |
| 56 | #SCM call before entering DLOAD mode |
| 57 | DEFINES += PLATFORM_USE_SCM_DLOAD=1 |
lijuang | b66cdb4 | 2015-03-11 17:00:17 +0800 | [diff] [blame] | 58 | |
| 59 | #Enable the external reboot functions |
vijay kumar | 75e9d69 | 2015-04-24 16:09:51 +0530 | [diff] [blame] | 60 | ENABLE_REBOOT_MODULE := 1 |
Channagoud Kadabi | b7dabeb | 2015-08-05 16:18:27 -0700 | [diff] [blame] | 61 | #Use PON register for reboot reason |
| 62 | DEFINES += USE_PON_REBOOT_REG=1 |
lijuang | 36ffff9 | 2015-08-29 16:39:49 +0800 | [diff] [blame] | 63 | |
| 64 | #enable battery voltage check |
| 65 | DEFINES += CHECK_BAT_VOLTAGE=1 |