blob: 30cf2d9032ebeefd42725061947291c53cbc9c88 [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
Mayank Grovera83b9772017-12-20 18:40:28 +053017ifeq ($(ENABLE_DISPLAY),1)
18DEFINES += ENABLE_DISPLAY=1
19DEFINES += DISPLAY_SPLASH_SCREEN=1
20endif
21
Mayank Grover56c68b02017-03-24 14:51:00 +053022ifeq ($(VERIFIED_BOOT),1)
23ENABLE_SECAPP_LOADER := 1
24ENABLE_RPMB_SUPPORT := 1
25
26ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
27#enable fbcon display menu
28ENABLE_FBCON_DISPLAY_MSG := 1
29endif
30endif
31
Unnati Gandhie47a9a42014-11-19 15:13:42 +053032ENABLE_SMD_SUPPORT := 1
Shivaraj Shetty08ae0182014-11-04 15:05:33 +053033ENABLE_PWM_SUPPORT := true
Parth Dixitbf905db2017-02-21 20:44:09 +053034ENABLE_BOOT_CONFIG_SUPPORT := 1
Unnati Gandhi4de667f2014-09-19 16:08:18 +053035
Mayank Grover638f2952017-09-01 17:43:03 +053036DEFINES += USE_BOOTDEV_CMDLINE=1
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053037#DEFINES += WITH_DEBUG_DCC=1
Unnati Gandhi2f4fa552014-10-13 05:01:05 +053038DEFINES += WITH_DEBUG_LOG_BUF=1
Unnati Gandhi2f5317e2015-03-12 16:53:57 +053039DEFINES += WITH_DEBUG_UART=1
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053040#DEFINES += WITH_DEBUG_FBCON=1
41DEFINES += DEVICE_TREE=1
42#DEFINES += MMC_BOOT_BAM=1
43#DEFINES += CRYPTO_BAM=1
Unnati Gandhi2f4fa552014-10-13 05:01:05 +053044DEFINES += SPMI_CORE_V2=1
Unnati Gandhifaa967c2014-08-05 18:16:42 +053045DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053046
Unnati Gandhifaa967c2014-08-05 18:16:42 +053047DEFINES += ABOOT_FORCE_KERNEL_ADDR=0x80008000
48DEFINES += ABOOT_FORCE_RAMDISK_ADDR=0x82000000
49DEFINES += ABOOT_FORCE_TAGS_ADDR=0x81E00000
50DEFINES += ABOOT_FORCE_KERNEL64_ADDR=0x00080000
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053051
Unnati Gandhi4de667f2014-09-19 16:08:18 +053052DEFINES += BAM_V170=1
Mayank Grover56c68b02017-03-24 14:51:00 +053053#DEFINES += ENABLE_FBCON_LOGGING=1
Unnati Gandhi4de667f2014-09-19 16:08:18 +053054
55#Enable the feature of long press power on
56DEFINES += LONG_PRESS_POWER_ON=1
57
Mayank Grover56c68b02017-03-24 14:51:00 +053058ifeq ($(ENABLE_RPMB_SUPPORT),1)
59DEFINES += USE_RPMB_FOR_DEVINFO=1
60endif
61
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053062#Disable thumb mode
63ENABLE_THUMB := false
64
Unnati Gandhidd5a2ab2014-07-15 23:20:30 +053065ENABLE_SDHCI_SUPPORT := 1
66
67ifeq ($(ENABLE_SDHCI_SUPPORT),1)
68DEFINES += MMC_SDHCI_SUPPORT=1
69endif
70
Unnati Gandhi4de667f2014-09-19 16:08:18 +053071#enable power on vibrator feature
Mayank Grover11cdd4b2017-07-20 12:11:18 +053072ifeq ($(ENABLE_BG_SUPPORT),1)
73ENABLE_HAP_VIB_SUPPORT := true
74else
Unnati Gandhi4de667f2014-09-19 16:08:18 +053075ENABLE_PON_VIB_SUPPORT := true
Mayank Grover11cdd4b2017-07-20 12:11:18 +053076endif
Unnati Gandhi4de667f2014-09-19 16:08:18 +053077
Unnati Gandhib2eaaa52014-07-07 11:34:37 +053078ifeq ($(EMMC_BOOT),1)
79DEFINES += _EMMC_BOOT=1
80endif
Unnati Gandhi4de667f2014-09-19 16:08:18 +053081
82ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
83DEFINES += PON_VIB_SUPPORT=1
84endif
85
Mayank Grover11cdd4b2017-07-20 12:11:18 +053086ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
87DEFINES += PON_VIB_SUPPORT=1
88endif
89
Unnati Gandhi4de667f2014-09-19 16:08:18 +053090ifeq ($(ENABLE_SMD_SUPPORT),1)
91DEFINES += SMD_SUPPORT=1
92endif
Unnati Gandhi1d1692c2014-11-04 18:39:33 +053093
94ifeq ($(ENABLE_BOOT_CONFIG_SUPPORT),1)
95DEFINES += BOOT_CONFIG_SUPPORT=1
96endif
Aparna Mallavarapu69538972015-03-05 14:22:52 +053097
98#SCM call before entering DLOAD mode
99DEFINES += PLATFORM_USE_SCM_DLOAD=1
Vijay Kumar Pendoti6e09e832016-08-31 18:24:50 +0530100DEFINES += NO_SCM_V8_SUPPORT=1
lijuangb66cdb42015-03-11 17:00:17 +0800101
102#Enable the external reboot functions
103ENABLE_REBOOT_MODULE := 1
Channagoud Kadabi400bd112015-08-10 15:38:10 -0700104#Use PON register for reboot reason
105DEFINES += USE_PON_REBOOT_REG=1
lijuang36ffff92015-08-29 16:39:49 +0800106
Mayank Grover56c68b02017-03-24 14:51:00 +0530107#Enable fbcon display for verified boot.
108ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
109DEFINES += FBCON_DISPLAY_MSG=1
110endif
111
Jiten Patel80efcf92018-03-15 19:50:22 +0530112#Increase TZ apps region to 2 MB due to KM 3.0 support
113ifeq ($(QSEECOM_SECAPP_REGION_2MB),1)
114 DEFINES += QSEECOM_SECAPP_REGION_2MB=1
115endif
116
lijuang36ffff92015-08-29 16:39:49 +0800117#enable battery voltage check
118DEFINES += CHECK_BAT_VOLTAGE=1