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 | |
Mayank Grover | a83b977 | 2017-12-20 18:40:28 +0530 | [diff] [blame] | 17 | ifeq ($(ENABLE_DISPLAY),1) |
| 18 | DEFINES += ENABLE_DISPLAY=1 |
| 19 | DEFINES += DISPLAY_SPLASH_SCREEN=1 |
| 20 | endif |
| 21 | |
Mayank Grover | 56c68b0 | 2017-03-24 14:51:00 +0530 | [diff] [blame] | 22 | ifeq ($(VERIFIED_BOOT),1) |
| 23 | ENABLE_SECAPP_LOADER := 1 |
| 24 | ENABLE_RPMB_SUPPORT := 1 |
| 25 | |
| 26 | ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES))) |
| 27 | #enable fbcon display menu |
| 28 | ENABLE_FBCON_DISPLAY_MSG := 1 |
| 29 | endif |
| 30 | endif |
| 31 | |
Unnati Gandhi | e47a9a4 | 2014-11-19 15:13:42 +0530 | [diff] [blame] | 32 | ENABLE_SMD_SUPPORT := 1 |
Shivaraj Shetty | 08ae018 | 2014-11-04 15:05:33 +0530 | [diff] [blame] | 33 | ENABLE_PWM_SUPPORT := true |
Parth Dixit | bf905db | 2017-02-21 20:44:09 +0530 | [diff] [blame] | 34 | ENABLE_BOOT_CONFIG_SUPPORT := 1 |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 35 | |
Mayank Grover | 638f295 | 2017-09-01 17:43:03 +0530 | [diff] [blame] | 36 | DEFINES += USE_BOOTDEV_CMDLINE=1 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 37 | #DEFINES += WITH_DEBUG_DCC=1 |
Unnati Gandhi | 2f4fa55 | 2014-10-13 05:01:05 +0530 | [diff] [blame] | 38 | DEFINES += WITH_DEBUG_LOG_BUF=1 |
Unnati Gandhi | 2f5317e | 2015-03-12 16:53:57 +0530 | [diff] [blame] | 39 | DEFINES += WITH_DEBUG_UART=1 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 40 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 41 | DEFINES += DEVICE_TREE=1 |
| 42 | #DEFINES += MMC_BOOT_BAM=1 |
| 43 | #DEFINES += CRYPTO_BAM=1 |
Unnati Gandhi | 2f4fa55 | 2014-10-13 05:01:05 +0530 | [diff] [blame] | 44 | DEFINES += SPMI_CORE_V2=1 |
Unnati Gandhi | faa967c | 2014-08-05 18:16:42 +0530 | [diff] [blame] | 45 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 46 | |
Unnati Gandhi | faa967c | 2014-08-05 18:16:42 +0530 | [diff] [blame] | 47 | DEFINES += ABOOT_FORCE_KERNEL_ADDR=0x80008000 |
| 48 | DEFINES += ABOOT_FORCE_RAMDISK_ADDR=0x82000000 |
| 49 | DEFINES += ABOOT_FORCE_TAGS_ADDR=0x81E00000 |
| 50 | DEFINES += ABOOT_FORCE_KERNEL64_ADDR=0x00080000 |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 51 | |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 52 | DEFINES += BAM_V170=1 |
Mayank Grover | 56c68b0 | 2017-03-24 14:51:00 +0530 | [diff] [blame] | 53 | #DEFINES += ENABLE_FBCON_LOGGING=1 |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 54 | |
| 55 | #Enable the feature of long press power on |
| 56 | DEFINES += LONG_PRESS_POWER_ON=1 |
| 57 | |
Mayank Grover | 56c68b0 | 2017-03-24 14:51:00 +0530 | [diff] [blame] | 58 | ifeq ($(ENABLE_RPMB_SUPPORT),1) |
| 59 | DEFINES += USE_RPMB_FOR_DEVINFO=1 |
| 60 | endif |
| 61 | |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 62 | #Disable thumb mode |
| 63 | ENABLE_THUMB := false |
| 64 | |
Unnati Gandhi | dd5a2ab | 2014-07-15 23:20:30 +0530 | [diff] [blame] | 65 | ENABLE_SDHCI_SUPPORT := 1 |
| 66 | |
| 67 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 68 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 69 | endif |
| 70 | |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 71 | #enable power on vibrator feature |
Mayank Grover | 11cdd4b | 2017-07-20 12:11:18 +0530 | [diff] [blame] | 72 | ifeq ($(ENABLE_BG_SUPPORT),1) |
| 73 | ENABLE_HAP_VIB_SUPPORT := true |
| 74 | else |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 75 | ENABLE_PON_VIB_SUPPORT := true |
Mayank Grover | 11cdd4b | 2017-07-20 12:11:18 +0530 | [diff] [blame] | 76 | endif |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 77 | |
Unnati Gandhi | b2eaaa5 | 2014-07-07 11:34:37 +0530 | [diff] [blame] | 78 | ifeq ($(EMMC_BOOT),1) |
| 79 | DEFINES += _EMMC_BOOT=1 |
| 80 | endif |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 81 | |
| 82 | ifeq ($(ENABLE_PON_VIB_SUPPORT),true) |
| 83 | DEFINES += PON_VIB_SUPPORT=1 |
| 84 | endif |
| 85 | |
Mayank Grover | 11cdd4b | 2017-07-20 12:11:18 +0530 | [diff] [blame] | 86 | ifeq ($(ENABLE_HAP_VIB_SUPPORT),true) |
| 87 | DEFINES += PON_VIB_SUPPORT=1 |
| 88 | endif |
| 89 | |
Unnati Gandhi | 4de667f | 2014-09-19 16:08:18 +0530 | [diff] [blame] | 90 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 91 | DEFINES += SMD_SUPPORT=1 |
| 92 | endif |
Unnati Gandhi | 1d1692c | 2014-11-04 18:39:33 +0530 | [diff] [blame] | 93 | |
| 94 | ifeq ($(ENABLE_BOOT_CONFIG_SUPPORT),1) |
| 95 | DEFINES += BOOT_CONFIG_SUPPORT=1 |
| 96 | endif |
Aparna Mallavarapu | 6953897 | 2015-03-05 14:22:52 +0530 | [diff] [blame] | 97 | |
| 98 | #SCM call before entering DLOAD mode |
| 99 | DEFINES += PLATFORM_USE_SCM_DLOAD=1 |
Vijay Kumar Pendoti | 6e09e83 | 2016-08-31 18:24:50 +0530 | [diff] [blame] | 100 | DEFINES += NO_SCM_V8_SUPPORT=1 |
lijuang | b66cdb4 | 2015-03-11 17:00:17 +0800 | [diff] [blame] | 101 | |
| 102 | #Enable the external reboot functions |
| 103 | ENABLE_REBOOT_MODULE := 1 |
Channagoud Kadabi | 400bd11 | 2015-08-10 15:38:10 -0700 | [diff] [blame] | 104 | #Use PON register for reboot reason |
| 105 | DEFINES += USE_PON_REBOOT_REG=1 |
lijuang | 36ffff9 | 2015-08-29 16:39:49 +0800 | [diff] [blame] | 106 | |
Mayank Grover | 56c68b0 | 2017-03-24 14:51:00 +0530 | [diff] [blame] | 107 | #Enable fbcon display for verified boot. |
| 108 | ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1) |
| 109 | DEFINES += FBCON_DISPLAY_MSG=1 |
| 110 | endif |
| 111 | |
Jiten Patel | 80efcf9 | 2018-03-15 19:50:22 +0530 | [diff] [blame] | 112 | #Increase TZ apps region to 2 MB due to KM 3.0 support |
| 113 | ifeq ($(QSEECOM_SECAPP_REGION_2MB),1) |
| 114 | DEFINES += QSEECOM_SECAPP_REGION_2MB=1 |
| 115 | endif |
| 116 | |
lijuang | 36ffff9 | 2015-08-29 16:39:49 +0800 | [diff] [blame] | 117 | #enable battery voltage check |
| 118 | DEFINES += CHECK_BAT_VOLTAGE=1 |