blob: d4b6dac93f638861d294c83af12aa3b13cbf838d [file] [log] [blame]
Channagoud Kadabi0ffa7862015-03-19 11:58:28 -07001# top level project rules for the msm8996 project
Channagoud Kadabied60a8b2014-06-27 15:35:09 -07002#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
Channagoud Kadabi0ffa7862015-03-19 11:58:28 -07005TARGET := msm8996
Channagoud Kadabied60a8b2014-06-27 15:35:09 -07006
7MODULES += app/aboot
Channagoud Kadabi472c2242015-06-16 10:07:55 -07008MODULES += app/mmutest
Channagoud Kadabied60a8b2014-06-27 15:35:09 -07009
Sridhar Parasuram761ab192014-11-19 16:18:53 -080010ifeq ($(TARGET_BUILD_VARIANT),user)
11DEBUG := 0
12else
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070013DEBUG := 1
Sridhar Parasuram761ab192014-11-19 16:18:53 -080014endif
15
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070016EMMC_BOOT := 1
17ENABLE_SDHCI_SUPPORT := 1
18ENABLE_UFS_SUPPORT := 1
19ENABLE_BOOT_CONFIG_SUPPORT := 1
20ENABLE_USB30_SUPPORT := 1
21ENABLE_QGIC3 := 1
Sridhar Parasuram568e7a62015-08-06 13:16:02 -070022ENABLE_SECAPP_LOADER := 1
Channagoud Kadabi06c97572014-12-05 15:48:37 -080023ENABLE_PARTIAL_GOODS_SUPPORT := 1
Sridhar Parasuram1fd4a572015-03-17 15:39:17 -070024ENABLE_GLINK_SUPPORT := 1
Dhaval Patel87eefaa2015-03-16 11:13:41 -070025ENABLE_PWM_SUPPORT := true
Channagoud Kadabi428a2132015-06-17 17:32:01 -070026ENABLE_LPAE_SUPPORT := 1
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070027
28DEFINES +=VIRTIO=1
29
30#DEFINES += WITH_DEBUG_DCC=1
31DEFINES += WITH_DEBUG_UART=1
32#DEFINES += WITH_DEBUG_FBCON=1
33DEFINES += DEVICE_TREE=1
Channagoud Kadabi602c02c2014-11-11 13:26:37 -080034DEFINES += SPMI_CORE_V2=1
Channagoud Kadabi037c8b82015-02-05 12:09:32 -080035DEFINES += BAM_V170=1
Channagoud Kadabi602c02c2014-11-11 13:26:37 -080036
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070037DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
38
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070039DEFINES += USB_RESET_FROM_CLK=1
Sridhar Parasurame3ff9cc2015-02-12 11:17:59 -080040DEFINES += USE_BOOTDEV_CMDLINE=1
Channagoud Kadabibb8f1f92015-04-27 11:14:45 -070041DEFINES += ENABLE_WBC=1
Zhen Kongab19b062015-10-08 18:33:05 -070042#Enable below flag to compile cmnlib64
Monika Singh7b8c3b02019-02-05 15:21:06 +053043DEFINES += ENABLE_CMNLIB64_LOADING=1
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070044
c_wufeng0c022982015-09-21 12:36:25 +080045ENABLE_HAP_VIB_SUPPORT := true
46
c_wufengf13b2582015-09-21 15:11:43 +080047#Enable the feature of long press power on
48DEFINES += LONG_PRESS_POWER_ON=1
49
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070050#Disable thumb mode
51ENABLE_THUMB := false
52
Parth Dixite6d6e9c2016-08-20 15:53:38 +053053ifeq ($(VERIFIED_BOOT),1)
Sridhar Parasuramfb5bfca2015-07-27 13:41:58 -070054#enable fbcon display menu
Vijay Kumar Pendoti4ae37672016-08-03 21:10:02 +053055ENABLE_FBCON_DISPLAY_MSG := 1
Mayank Grover2995f502017-09-12 19:19:20 +053056ENABLE_RPMB_SUPPORT := 1
Parth Dixite6d6e9c2016-08-20 15:53:38 +053057endif
Sridhar Parasuramfb5bfca2015-07-27 13:41:58 -070058
Monika Singh2416bc32019-01-28 11:02:17 +053059ifeq ($(VERIFIED_BOOT_2),1)
60#enable fbcon display menu
61ENABLE_FBCON_DISPLAY_MSG := 1
62ENABLE_RPMB_SUPPORT := 1
63endif
64
Sridhar Parasuramfb5bfca2015-07-27 13:41:58 -070065ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
66DEFINES += FBCON_DISPLAY_MSG=1
67endif
68
Parth Dixite6d6e9c2016-08-20 15:53:38 +053069ifeq ($(ENABLE_RPMB_SUPPORT),1)
70DEFINES += USE_RPMB_FOR_DEVINFO=1
71endif
72
c_wufeng0c022982015-09-21 12:36:25 +080073ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
74DEFINES += PON_VIB_SUPPORT=1
75endif
Sridhar Parasuramfb5bfca2015-07-27 13:41:58 -070076
Sridhar Parasuram1fd4a572015-03-17 15:39:17 -070077ifeq ($(ENABLE_GLINK_SUPPORT),1)
78DEFINES += GLINK_SUPPORT=1
79endif
80
Channagoud Kadabied60a8b2014-06-27 15:35:09 -070081ifeq ($(EMMC_BOOT),1)
82DEFINES += _EMMC_BOOT=1
83endif
84
85ifeq ($(ENABLE_SDHCI_SUPPORT),1)
86DEFINES += MMC_SDHCI_SUPPORT=1
87endif
88
89ifeq ($(ENABLE_UFS_SUPPORT),1)
90DEFINES += UFS_SUPPORT=1
91endif
92
93ifeq ($(ENABLE_USB30_SUPPORT),1)
94DEFINES += USB30_SUPPORT=1
95endif
Channagoud Kadabi3e0a4712014-12-22 12:07:31 -080096
Sridhar Parasurama8954b52015-01-23 14:45:24 -080097ifeq ($(ENABLE_PARTIAL_GOODS_SUPPORT),1)
98DEFINES += ENABLE_PARTIAL_GOODS_SUPPORT=1
99endif
100
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530101ifeq ($(VERIFIED_BOOT),1)
Amit Blay9afe37e2015-06-15 15:56:15 +0300102ENABLE_MDTP_SUPPORT := 1
Sourabh Banerjeec5ba9692016-04-06 17:14:37 +0530103endif
Amit Blay9afe37e2015-06-15 15:56:15 +0300104
Amit Blay6a3e88b2015-06-23 22:25:06 +0300105ifeq ($(ENABLE_MDTP_SUPPORT),1)
106DEFINES += MDTP_SUPPORT=1
Amit Blay6a3e88b2015-06-23 22:25:06 +0300107endif
108
Channagoud Kadabi428a2132015-06-17 17:32:01 -0700109ifeq ($(ENABLE_LPAE_SUPPORT),1)
110DEFINES += LPAE=1
111endif
112
anisha agarwalebc52bc2016-07-08 15:50:00 -0700113ifeq ($(APPEND_CMDLINE),1)
114DEFINES += _APPEND_CMDLINE=1
115endif
116
Channagoud Kadabi3e0a4712014-12-22 12:07:31 -0800117CFLAGS += -Werror
Channagoud Kadabi23edc0c2015-03-27 18:31:32 -0700118
c_wufengd3bffca2015-11-12 15:22:14 +0800119#enable user force reset feature
120DEFINES += USER_FORCE_RESET_SUPPORT=1
121
Channagoud Kadabi23edc0c2015-03-27 18:31:32 -0700122#SCM call before entering DLOAD mode
123DEFINES += PLATFORM_USE_SCM_DLOAD=1
Channagoud Kadabi65b518d2015-08-05 16:17:14 -0700124
125#Enable the external reboot functions
126ENABLE_REBOOT_MODULE := 1
Channagoud Kadabi8a9a09d2015-08-13 13:28:33 -0700127#fuse for Qusb tun2 config
128DEFINES += QFPROM_CORR_CALIB_ROW12_MSB=0x0007424C
Channagoud Kadabie35356f2015-08-05 18:06:38 -0700129#Use misc settings for qmp
130DEFINES += PLATFORM_USE_QMP_MISC=1
Channagoud Kadabi46f7a7f2015-08-06 20:27:06 -0700131#Use PON register for reboot reason
132DEFINES += USE_PON_REBOOT_REG=1
lijuang36ffff92015-08-29 16:39:49 +0800133
134#enable battery voltage check
135DEFINES += CHECK_BAT_VOLTAGE=1
Channagoud Kadabi736c4962015-08-21 11:56:52 -0700136# Enable unit test FW
137ENABLE_UNITTEST_FW=1
138ifeq ($(ENABLE_UNITTEST_FW),1)
139DEFINES += UNITTEST_FW_SUPPORT=1
140endif
lijuangc4645b72015-12-25 16:06:21 +0800141
142#Disable the dload mode
143DEFINES += DISABLE_DLOAD_MODE=0
144
145ENABLE_WDOG_SUPPORT := 0
146ifeq ($(ENABLE_WDOG_SUPPORT),1)
147DEFINES += WDOG_SUPPORT=1
148endif
Channagoud Kadabi85c7ec32016-01-28 23:09:21 -0800149# Target specific command line
150DEFINES += TARGET_CMDLINE_SUPPORT=1
Kishor PKb5db1c52017-07-13 15:36:04 +0530151
152#Enable early mount support for mmc/ufs
153ifeq ($(ENABLE_BOOTDEVICE_MOUNT),1)
154DEFINES += ENABLE_BOOTDEVICE_MOUNT=1
155endif