blob: b6a45390e9960277fabef23a84f55e5c16857ce3 [file] [log] [blame]
Channagoud Kadabic05b7682014-04-14 14:00:47 -07001# top level project rules for the msm8994 project
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -08002#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
Channagoud Kadabic05b7682014-04-14 14:00:47 -07005TARGET := msm8994
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -08006
7MODULES += app/aboot
Sridhar Parasurame4266f42014-10-23 20:11:09 -07008MODULES += app/rpmbtests
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -08009
vijay kumar6daa75c2014-08-28 16:43:18 +053010ifeq ($(TARGET_BUILD_VARIANT),user)
11DEBUG := 0
12else
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -080013DEBUG := 1
vijay kumar6daa75c2014-08-28 16:43:18 +053014endif
15
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -080016EMMC_BOOT := 1
17ENABLE_SDHCI_SUPPORT := 1
18ENABLE_UFS_SUPPORT := 1
Sundarajan Srinivasand598b122014-03-21 17:33:29 -070019ENABLE_BOOT_CONFIG_SUPPORT := 1
Channagoud Kadabi8c9e5b72014-04-22 15:01:42 -070020ENABLE_USB30_SUPPORT := 1
Channagoud Kadabi9e574882014-06-24 16:15:23 -070021USE_DYNAMIC_SMEM := 1
Sundarajan Srinivasan4bc19a32014-07-24 16:40:56 -070022ENABLE_SMD_SUPPORT := 1
Aparna Mallavarapu965fac92014-08-04 22:45:01 +053023ENABLE_PWM_SUPPORT := true
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -080024
25#DEFINES += WITH_DEBUG_DCC=1
26DEFINES += WITH_DEBUG_UART=1
27#DEFINES += WITH_DEBUG_FBCON=1
28DEFINES += DEVICE_TREE=1
29DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
30
Channagoud Kadabi8e23f0a2014-06-05 14:22:27 -070031DEFINES += ABOOT_FORCE_KERNEL_ADDR=0x00008000
Channagoud Kadabi94dc3d52015-04-17 14:44:13 -070032DEFINES += ABOOT_FORCE_RAMDISK_ADDR=0x02700000
33DEFINES += ABOOT_FORCE_TAGS_ADDR=0x02500000
Abhimanyu Kapur0f79d572014-02-19 22:03:02 -080034DEFINES += ABOOT_FORCE_KERNEL64_ADDR=0x00080000
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -080035
Channagoud Kadabic2475e42014-06-26 14:46:43 -070036DEFINES += ENABLE_XPU_VIOLATION=1
Sridhar Parasurame3ff9cc2015-02-12 11:17:59 -080037DEFINES += USE_BOOTDEV_CMDLINE=1
Channagoud Kadabic2475e42014-06-26 14:46:43 -070038
Channagoud Kadabi3022a2f2014-02-06 13:23:46 -080039#Disable thumb mode
40ENABLE_THUMB := false
41
42ifeq ($(EMMC_BOOT),1)
43DEFINES += _EMMC_BOOT=1
44endif
45
46ifeq ($(ENABLE_SDHCI_SUPPORT),1)
47DEFINES += MMC_SDHCI_SUPPORT=1
48endif
49
50ifeq ($(ENABLE_UFS_SUPPORT),1)
51DEFINES += UFS_SUPPORT=1
52endif
Channagoud Kadabi8c9e5b72014-04-22 15:01:42 -070053
54ifeq ($(ENABLE_USB30_SUPPORT),1)
55DEFINES += USB30_SUPPORT=1
56endif
Channagoud Kadabi9e574882014-06-24 16:15:23 -070057
58ifeq ($(USE_DYNAMIC_SMEM),1)
59DEFINES += DYNAMIC_SMEM=1
60endif
Sundarajan Srinivasan4bc19a32014-07-24 16:40:56 -070061
62ifeq ($(ENABLE_SMD_SUPPORT),1)
63DEFINES += SMD_SUPPORT=1
64endif
Sridhar Parasuramb23792a2014-12-22 11:17:02 -080065
Amit Blay6281ebc2015-01-11 14:44:08 +020066ifeq ($(ENABLE_MDTP_SUPPORT),1)
67DEFINES += MDTP_SUPPORT=1
Amit Blay1c2ed722015-01-29 22:05:20 +020068DEFINES += MDTP_EFUSE_ADDRESS=0xFC4B81F8 # QFPROM_RAW_SPARE_REG19_LSB
69DEFINES += MDTP_EFUSE_START=17
Amit Blay6281ebc2015-01-11 14:44:08 +020070endif
71
Sridhar Parasuramb23792a2014-12-22 11:17:02 -080072# Turn on Werror
73CFLAGS += -Werror