Channagoud Kadabi | c05b768 | 2014-04-14 14:00:47 -0700 | [diff] [blame] | 1 | # top level project rules for the msm8994 project |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 2 | # |
| 3 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 4 | |
Channagoud Kadabi | c05b768 | 2014-04-14 14:00:47 -0700 | [diff] [blame] | 5 | TARGET := msm8994 |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 6 | |
| 7 | MODULES += app/aboot |
Sridhar Parasuram | e4266f4 | 2014-10-23 20:11:09 -0700 | [diff] [blame] | 8 | MODULES += app/rpmbtests |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 9 | |
vijay kumar | 6daa75c | 2014-08-28 16:43:18 +0530 | [diff] [blame] | 10 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 11 | DEBUG := 0 |
| 12 | else |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 13 | DEBUG := 1 |
vijay kumar | 6daa75c | 2014-08-28 16:43:18 +0530 | [diff] [blame] | 14 | endif |
| 15 | |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 16 | EMMC_BOOT := 1 |
| 17 | ENABLE_SDHCI_SUPPORT := 1 |
| 18 | ENABLE_UFS_SUPPORT := 1 |
Sundarajan Srinivasan | d598b12 | 2014-03-21 17:33:29 -0700 | [diff] [blame] | 19 | ENABLE_BOOT_CONFIG_SUPPORT := 1 |
Channagoud Kadabi | 8c9e5b7 | 2014-04-22 15:01:42 -0700 | [diff] [blame] | 20 | ENABLE_USB30_SUPPORT := 1 |
Channagoud Kadabi | 9e57488 | 2014-06-24 16:15:23 -0700 | [diff] [blame] | 21 | USE_DYNAMIC_SMEM := 1 |
Sundarajan Srinivasan | 4bc19a3 | 2014-07-24 16:40:56 -0700 | [diff] [blame] | 22 | ENABLE_SMD_SUPPORT := 1 |
Aparna Mallavarapu | 965fac9 | 2014-08-04 22:45:01 +0530 | [diff] [blame] | 23 | ENABLE_PWM_SUPPORT := true |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 24 | |
| 25 | #DEFINES += WITH_DEBUG_DCC=1 |
| 26 | DEFINES += WITH_DEBUG_UART=1 |
| 27 | #DEFINES += WITH_DEBUG_FBCON=1 |
| 28 | DEFINES += DEVICE_TREE=1 |
| 29 | DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1 |
| 30 | |
Channagoud Kadabi | 8e23f0a | 2014-06-05 14:22:27 -0700 | [diff] [blame] | 31 | DEFINES += ABOOT_FORCE_KERNEL_ADDR=0x00008000 |
Channagoud Kadabi | 94dc3d5 | 2015-04-17 14:44:13 -0700 | [diff] [blame] | 32 | DEFINES += ABOOT_FORCE_RAMDISK_ADDR=0x02700000 |
| 33 | DEFINES += ABOOT_FORCE_TAGS_ADDR=0x02500000 |
Abhimanyu Kapur | 0f79d57 | 2014-02-19 22:03:02 -0800 | [diff] [blame] | 34 | DEFINES += ABOOT_FORCE_KERNEL64_ADDR=0x00080000 |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 35 | |
Channagoud Kadabi | c2475e4 | 2014-06-26 14:46:43 -0700 | [diff] [blame] | 36 | DEFINES += ENABLE_XPU_VIOLATION=1 |
Sridhar Parasuram | e3ff9cc | 2015-02-12 11:17:59 -0800 | [diff] [blame] | 37 | DEFINES += USE_BOOTDEV_CMDLINE=1 |
Channagoud Kadabi | c2475e4 | 2014-06-26 14:46:43 -0700 | [diff] [blame] | 38 | |
Channagoud Kadabi | 3022a2f | 2014-02-06 13:23:46 -0800 | [diff] [blame] | 39 | #Disable thumb mode |
| 40 | ENABLE_THUMB := false |
| 41 | |
| 42 | ifeq ($(EMMC_BOOT),1) |
| 43 | DEFINES += _EMMC_BOOT=1 |
| 44 | endif |
| 45 | |
| 46 | ifeq ($(ENABLE_SDHCI_SUPPORT),1) |
| 47 | DEFINES += MMC_SDHCI_SUPPORT=1 |
| 48 | endif |
| 49 | |
| 50 | ifeq ($(ENABLE_UFS_SUPPORT),1) |
| 51 | DEFINES += UFS_SUPPORT=1 |
| 52 | endif |
Channagoud Kadabi | 8c9e5b7 | 2014-04-22 15:01:42 -0700 | [diff] [blame] | 53 | |
| 54 | ifeq ($(ENABLE_USB30_SUPPORT),1) |
| 55 | DEFINES += USB30_SUPPORT=1 |
| 56 | endif |
Channagoud Kadabi | 9e57488 | 2014-06-24 16:15:23 -0700 | [diff] [blame] | 57 | |
| 58 | ifeq ($(USE_DYNAMIC_SMEM),1) |
| 59 | DEFINES += DYNAMIC_SMEM=1 |
| 60 | endif |
Sundarajan Srinivasan | 4bc19a3 | 2014-07-24 16:40:56 -0700 | [diff] [blame] | 61 | |
| 62 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 63 | DEFINES += SMD_SUPPORT=1 |
| 64 | endif |
Sridhar Parasuram | b23792a | 2014-12-22 11:17:02 -0800 | [diff] [blame] | 65 | |
Amit Blay | 6281ebc | 2015-01-11 14:44:08 +0200 | [diff] [blame] | 66 | ifeq ($(ENABLE_MDTP_SUPPORT),1) |
| 67 | DEFINES += MDTP_SUPPORT=1 |
Amit Blay | 1c2ed72 | 2015-01-29 22:05:20 +0200 | [diff] [blame] | 68 | DEFINES += MDTP_EFUSE_ADDRESS=0xFC4B81F8 # QFPROM_RAW_SPARE_REG19_LSB |
| 69 | DEFINES += MDTP_EFUSE_START=17 |
Amit Blay | 6281ebc | 2015-01-11 14:44:08 +0200 | [diff] [blame] | 70 | endif |
| 71 | |
Sridhar Parasuram | b23792a | 2014-12-22 11:17:02 -0800 | [diff] [blame] | 72 | # Turn on Werror |
| 73 | CFLAGS += -Werror |