Channagoud Kadabi | 0ffa786 | 2015-03-19 11:58:28 -0700 | [diff] [blame] | 1 | # top level project rules for the msm8996 project |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
Channagoud Kadabi | 0ffa786 | 2015-03-19 11:58:28 -0700 | [diff] [blame] | 5 | TARGET := msm8996 |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 6 | |
| 7 | MODULES += app/aboot |
Channagoud Kadabi | 472c224 | 2015-06-16 10:07:55 -0700 | [diff] [blame] | 8 | MODULES += app/mmutest |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 9 | |
Sridhar Parasuram | 761ab19 | 2014-11-19 16:18:53 -0800 | [diff] [blame] | 10 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 11 | DEBUG := 0 |
| 12 | else |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 13 | DEBUG := 1 |
Sridhar Parasuram | 761ab19 | 2014-11-19 16:18:53 -0800 | [diff] [blame] | 14 | endif |
| 15 | |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 16 | EMMC_BOOT := 1 |
| 17 | ENABLE_SDHCI_SUPPORT := 1 |
| 18 | ENABLE_UFS_SUPPORT := 1 |
| 19 | ENABLE_BOOT_CONFIG_SUPPORT := 1 |
| 20 | ENABLE_USB30_SUPPORT := 1 |
| 21 | ENABLE_QGIC3 := 1 |
Sridhar Parasuram | 568e7a6 | 2015-08-06 13:16:02 -0700 | [diff] [blame] | 22 | ENABLE_SECAPP_LOADER := 1 |
Channagoud Kadabi | 06c9757 | 2014-12-05 15:48:37 -0800 | [diff] [blame] | 23 | ENABLE_PARTIAL_GOODS_SUPPORT := 1 |
Sridhar Parasuram | 1fd4a57 | 2015-03-17 15:39:17 -0700 | [diff] [blame] | 24 | ENABLE_GLINK_SUPPORT := 1 |
Dhaval Patel | 87eefaa | 2015-03-16 11:13:41 -0700 | [diff] [blame] | 25 | ENABLE_PWM_SUPPORT := true |
Channagoud Kadabi | 428a213 | 2015-06-17 17:32:01 -0700 | [diff] [blame] | 26 | ENABLE_LPAE_SUPPORT := 1 |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 27 | |
| 28 | DEFINES +=VIRTIO=1 |
| 29 | |
| 30 | #DEFINES += WITH_DEBUG_DCC=1 |
| 31 | DEFINES += WITH_DEBUG_UART=1 |
| 32 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 33 | DEFINES += DEVICE_TREE=1 |
Channagoud Kadabi | 602c02c | 2014-11-11 13:26:37 -0800 | [diff] [blame] | 34 | DEFINES += SPMI_CORE_V2=1 |
Channagoud Kadabi | 037c8b8 | 2015-02-05 12:09:32 -0800 | [diff] [blame] | 35 | DEFINES += BAM_V170=1 |
Channagoud Kadabi | 602c02c | 2014-11-11 13:26:37 -0800 | [diff] [blame] | 36 | |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 37 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
| 38 | |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 39 | DEFINES += USB_RESET_FROM_CLK=1 |
Sridhar Parasuram | e3ff9cc | 2015-02-12 11:17:59 -0800 | [diff] [blame] | 40 | DEFINES += USE_BOOTDEV_CMDLINE=1 |
Channagoud Kadabi | bb8f1f9 | 2015-04-27 11:14:45 -0700 | [diff] [blame] | 41 | DEFINES += ENABLE_WBC=1 |
Zhen Kong | ab19b06 | 2015-10-08 18:33:05 -0700 | [diff] [blame] | 42 | #Enable below flag to compile cmnlib64 |
Monika Singh | 7b8c3b0 | 2019-02-05 15:21:06 +0530 | [diff] [blame] | 43 | DEFINES += ENABLE_CMNLIB64_LOADING=1 |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 44 | |
c_wufeng | 0c02298 | 2015-09-21 12:36:25 +0800 | [diff] [blame] | 45 | ENABLE_HAP_VIB_SUPPORT := true |
| 46 | |
c_wufeng | f13b258 | 2015-09-21 15:11:43 +0800 | [diff] [blame] | 47 | #Enable the feature of long press power on |
| 48 | DEFINES += LONG_PRESS_POWER_ON=1 |
| 49 | |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 50 | #Disable thumb mode |
| 51 | ENABLE_THUMB := false |
| 52 | |
Parth Dixit | e6d6e9c | 2016-08-20 15:53:38 +0530 | [diff] [blame] | 53 | ifeq ($(VERIFIED_BOOT),1) |
Sridhar Parasuram | fb5bfca | 2015-07-27 13:41:58 -0700 | [diff] [blame] | 54 | #enable fbcon display menu |
Vijay Kumar Pendoti | 4ae3767 | 2016-08-03 21:10:02 +0530 | [diff] [blame] | 55 | ENABLE_FBCON_DISPLAY_MSG := 1 |
Mayank Grover | 2995f50 | 2017-09-12 19:19:20 +0530 | [diff] [blame] | 56 | ENABLE_RPMB_SUPPORT := 1 |
Parth Dixit | e6d6e9c | 2016-08-20 15:53:38 +0530 | [diff] [blame] | 57 | endif |
Sridhar Parasuram | fb5bfca | 2015-07-27 13:41:58 -0700 | [diff] [blame] | 58 | |
Monika Singh | 2416bc3 | 2019-01-28 11:02:17 +0530 | [diff] [blame] | 59 | ifeq ($(VERIFIED_BOOT_2),1) |
| 60 | #enable fbcon display menu |
| 61 | ENABLE_FBCON_DISPLAY_MSG := 1 |
| 62 | ENABLE_RPMB_SUPPORT := 1 |
| 63 | endif |
| 64 | |
Sridhar Parasuram | fb5bfca | 2015-07-27 13:41:58 -0700 | [diff] [blame] | 65 | ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1) |
| 66 | DEFINES += FBCON_DISPLAY_MSG=1 |
| 67 | endif |
| 68 | |
Parth Dixit | e6d6e9c | 2016-08-20 15:53:38 +0530 | [diff] [blame] | 69 | ifeq ($(ENABLE_RPMB_SUPPORT),1) |
| 70 | DEFINES += USE_RPMB_FOR_DEVINFO=1 |
| 71 | endif |
| 72 | |
c_wufeng | 0c02298 | 2015-09-21 12:36:25 +0800 | [diff] [blame] | 73 | ifeq ($(ENABLE_HAP_VIB_SUPPORT),true) |
| 74 | DEFINES += PON_VIB_SUPPORT=1 |
| 75 | endif |
Sridhar Parasuram | fb5bfca | 2015-07-27 13:41:58 -0700 | [diff] [blame] | 76 | |
Sridhar Parasuram | 1fd4a57 | 2015-03-17 15:39:17 -0700 | [diff] [blame] | 77 | ifeq ($(ENABLE_GLINK_SUPPORT),1) |
| 78 | DEFINES += GLINK_SUPPORT=1 |
| 79 | endif |
| 80 | |
Channagoud Kadabi | ed60a8b | 2014-06-27 15:35:09 -0700 | [diff] [blame] | 81 | ifeq ($(EMMC_BOOT),1) |
| 82 | DEFINES += _EMMC_BOOT=1 |
| 83 | endif |
| 84 | |
| 85 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 86 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 87 | endif |
| 88 | |
| 89 | ifeq ($(ENABLE_UFS_SUPPORT),1) |
| 90 | DEFINES += UFS_SUPPORT=1 |
| 91 | endif |
| 92 | |
| 93 | ifeq ($(ENABLE_USB30_SUPPORT),1) |
| 94 | DEFINES += USB30_SUPPORT=1 |
| 95 | endif |
Channagoud Kadabi | 3e0a471 | 2014-12-22 12:07:31 -0800 | [diff] [blame] | 96 | |
Sridhar Parasuram | a8954b5 | 2015-01-23 14:45:24 -0800 | [diff] [blame] | 97 | ifeq ($(ENABLE_PARTIAL_GOODS_SUPPORT),1) |
| 98 | DEFINES += ENABLE_PARTIAL_GOODS_SUPPORT=1 |
| 99 | endif |
| 100 | |
Sourabh Banerjee | c5ba969 | 2016-04-06 17:14:37 +0530 | [diff] [blame] | 101 | ifeq ($(VERIFIED_BOOT),1) |
Amit Blay | 9afe37e | 2015-06-15 15:56:15 +0300 | [diff] [blame] | 102 | ENABLE_MDTP_SUPPORT := 1 |
Sourabh Banerjee | c5ba969 | 2016-04-06 17:14:37 +0530 | [diff] [blame] | 103 | endif |
Amit Blay | 9afe37e | 2015-06-15 15:56:15 +0300 | [diff] [blame] | 104 | |
Amit Blay | 6a3e88b | 2015-06-23 22:25:06 +0300 | [diff] [blame] | 105 | ifeq ($(ENABLE_MDTP_SUPPORT),1) |
| 106 | DEFINES += MDTP_SUPPORT=1 |
Amit Blay | 6a3e88b | 2015-06-23 22:25:06 +0300 | [diff] [blame] | 107 | endif |
| 108 | |
Channagoud Kadabi | 428a213 | 2015-06-17 17:32:01 -0700 | [diff] [blame] | 109 | ifeq ($(ENABLE_LPAE_SUPPORT),1) |
| 110 | DEFINES += LPAE=1 |
| 111 | endif |
| 112 | |
anisha agarwal | ebc52bc | 2016-07-08 15:50:00 -0700 | [diff] [blame] | 113 | ifeq ($(APPEND_CMDLINE),1) |
| 114 | DEFINES += _APPEND_CMDLINE=1 |
| 115 | endif |
| 116 | |
Channagoud Kadabi | 3e0a471 | 2014-12-22 12:07:31 -0800 | [diff] [blame] | 117 | CFLAGS += -Werror |
Channagoud Kadabi | 23edc0c | 2015-03-27 18:31:32 -0700 | [diff] [blame] | 118 | |
c_wufeng | d3bffca | 2015-11-12 15:22:14 +0800 | [diff] [blame] | 119 | #enable user force reset feature |
| 120 | DEFINES += USER_FORCE_RESET_SUPPORT=1 |
| 121 | |
Channagoud Kadabi | 23edc0c | 2015-03-27 18:31:32 -0700 | [diff] [blame] | 122 | #SCM call before entering DLOAD mode |
| 123 | DEFINES += PLATFORM_USE_SCM_DLOAD=1 |
Channagoud Kadabi | 65b518d | 2015-08-05 16:17:14 -0700 | [diff] [blame] | 124 | |
| 125 | #Enable the external reboot functions |
| 126 | ENABLE_REBOOT_MODULE := 1 |
Channagoud Kadabi | 8a9a09d | 2015-08-13 13:28:33 -0700 | [diff] [blame] | 127 | #fuse for Qusb tun2 config |
| 128 | DEFINES += QFPROM_CORR_CALIB_ROW12_MSB=0x0007424C |
Channagoud Kadabi | e35356f | 2015-08-05 18:06:38 -0700 | [diff] [blame] | 129 | #Use misc settings for qmp |
| 130 | DEFINES += PLATFORM_USE_QMP_MISC=1 |
Channagoud Kadabi | 46f7a7f | 2015-08-06 20:27:06 -0700 | [diff] [blame] | 131 | #Use PON register for reboot reason |
| 132 | DEFINES += USE_PON_REBOOT_REG=1 |
lijuang | 36ffff9 | 2015-08-29 16:39:49 +0800 | [diff] [blame] | 133 | |
| 134 | #enable battery voltage check |
| 135 | DEFINES += CHECK_BAT_VOLTAGE=1 |
Channagoud Kadabi | 736c496 | 2015-08-21 11:56:52 -0700 | [diff] [blame] | 136 | # Enable unit test FW |
| 137 | ENABLE_UNITTEST_FW=1 |
| 138 | ifeq ($(ENABLE_UNITTEST_FW),1) |
| 139 | DEFINES += UNITTEST_FW_SUPPORT=1 |
| 140 | endif |
lijuang | c4645b7 | 2015-12-25 16:06:21 +0800 | [diff] [blame] | 141 | |
| 142 | #Disable the dload mode |
| 143 | DEFINES += DISABLE_DLOAD_MODE=0 |
| 144 | |
| 145 | ENABLE_WDOG_SUPPORT := 0 |
| 146 | ifeq ($(ENABLE_WDOG_SUPPORT),1) |
| 147 | DEFINES += WDOG_SUPPORT=1 |
| 148 | endif |
Channagoud Kadabi | 85c7ec3 | 2016-01-28 23:09:21 -0800 | [diff] [blame] | 149 | # Target specific command line |
| 150 | DEFINES += TARGET_CMDLINE_SUPPORT=1 |
Kishor PK | b5db1c5 | 2017-07-13 15:36:04 +0530 | [diff] [blame] | 151 | |
| 152 | #Enable early mount support for mmc/ufs |
| 153 | ifeq ($(ENABLE_BOOTDEVICE_MOUNT),1) |
| 154 | DEFINES += ENABLE_BOOTDEVICE_MOUNT=1 |
| 155 | endif |