David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 1 | # config.mk |
| 2 | # |
| 3 | # Product-specific compile-time definitions. |
| 4 | # |
| 5 | |
Chaitanya Swaroop Juturi | 3fe18db | 2020-08-20 22:50:48 +0530 | [diff] [blame] | 6 | ALLOW_MISSING_DEPENDENCIES := true |
Matthew Leung | f025a7b | 2019-10-28 17:41:11 -0700 | [diff] [blame] | 7 | |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 8 | TARGET_BOARD_PLATFORM := msmnile |
| 9 | TARGET_BOOTLOADER_BOARD_NAME := msmnile |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 10 | |
| 11 | TARGET_ARCH := arm64 |
| 12 | TARGET_ARCH_VARIANT := armv8-a |
| 13 | TARGET_CPU_ABI := arm64-v8a |
| 14 | TARGET_CPU_ABI2 := |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 15 | TARGET_CPU_VARIANT := generic |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 16 | |
| 17 | TARGET_2ND_ARCH := arm |
| 18 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
| 19 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 20 | TARGET_2ND_CPU_ABI2 := armeabi |
| 21 | TARGET_2ND_CPU_VARIANT := cortex-a9 |
| 22 | |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 23 | TARGET_HW_DISK_ENCRYPTION := true |
| 24 | TARGET_HW_DISK_ENCRYPTION_PERF := true |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 25 | |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 26 | BOARD_SECCOMP_POLICY := device/qcom/$(TARGET_BOARD_PLATFORM)/seccomp |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 27 | |
P.Adarsh Reddy | be6c09d | 2020-06-26 18:28:45 +0530 | [diff] [blame] | 28 | BOARD_SYSTEMSDK_VERSIONS:= $(SHIPPING_API_LEVEL) |
Vinay Verma | 55d0bf6 | 2019-07-04 20:11:08 +0530 | [diff] [blame] | 29 | |
padarshr | 42919bc | 2019-04-19 16:02:39 +0530 | [diff] [blame] | 30 | TARGET_NO_BOOTLOADER := true |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 31 | TARGET_USES_UEFI := true |
Mulugeta Engdaw | 9938f13 | 2020-02-10 15:25:07 -0800 | [diff] [blame] | 32 | TARGET_NO_KERNEL := true |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 33 | |
Vinayak Soni | aa944cc | 2019-03-26 18:59:17 -0700 | [diff] [blame] | 34 | # Disable DLKMs compilation for lunch qssi builds. |
| 35 | TARGET_KERNEL_DLKM_DISABLE := true |
| 36 | |
Vinayak Soni | 3e453c7 | 2018-12-10 00:35:58 -0800 | [diff] [blame] | 37 | -include $(QCPATH)/common/msmnile/BoardConfigVendor.mk |
| 38 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 39 | USE_OPENGL_RENDERER := true |
| 40 | BOARD_USE_LEGACY_UI := true |
| 41 | |
padarshr | 0f476a1 | 2019-01-14 19:44:35 +0530 | [diff] [blame] | 42 | ifeq ($(ENABLE_AB), true) |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 43 | # Defines for enabling A/B builds |
| 44 | AB_OTA_UPDATER := true |
| 45 | # Full A/B partition update set |
| 46 | # AB_OTA_PARTITIONS := xbl rpm tz hyp pmic modem abl boot keymaster cmnlib cmnlib64 system bluetooth |
| 47 | |
| 48 | # Minimum partition set for automation to test recovery generation code |
| 49 | # Packages generated by using just the below flag cannot be used for updating a device. You must pass |
| 50 | # in the full set mentioned above as part of your make commandline |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 51 | TARGET_NO_RECOVERY := true |
padarshr | 0f476a1 | 2019-01-14 19:44:35 +0530 | [diff] [blame] | 52 | else |
| 53 | TARGET_NO_RECOVERY := true |
| 54 | # Enable System As Root even for non-A/B |
padarshr | 0f476a1 | 2019-01-14 19:44:35 +0530 | [diff] [blame] | 55 | # Add the below cache settings for /cache mountpoint, although we don't need the resultant cache image |
| 56 | # from within Qssi. |
| 57 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
| 58 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 59 | endif |
| 60 | |
Vinayak Soni | 48a17b2 | 2019-04-23 21:10:25 -0700 | [diff] [blame] | 61 | # Define BOARD_USES_METADATA_PARTITION to create metadata mount point in system image |
padarshr | 4f4c7e0 | 2019-04-17 20:08:33 +0530 | [diff] [blame] | 62 | BOARD_USES_METADATA_PARTITION := true |
padarshr | 4f4c7e0 | 2019-04-17 20:08:33 +0530 | [diff] [blame] | 63 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 64 | #Enable split vendor image |
| 65 | ENABLE_VENDOR_IMAGE := true |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 66 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 67 | TARGET_COPY_OUT_VENDOR := vendor |
| 68 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
padarshr | 563490e | 2019-01-14 19:51:22 +0530 | [diff] [blame] | 69 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 70 | TARGET_USERIMAGES_USE_EXT4 := true |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 71 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x06000000 |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 72 | BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) |
| 73 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 74 | MAX_EGL_CACHE_KEY_SIZE := 12*1024 |
| 75 | MAX_EGL_CACHE_SIZE := 2048*1024 |
| 76 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 77 | BOARD_USES_GENERIC_AUDIO := true |
| 78 | BOARD_QTI_CAMERA_32BIT_ONLY := true |
| 79 | TARGET_NO_RPC := true |
| 80 | |
| 81 | TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ |
| 82 | TARGET_INIT_VENDOR_LIB := libinit_msm |
| 83 | |
Prakruthi Deepak Heragu | 47fdff5 | 2019-06-13 14:58:28 -0700 | [diff] [blame] | 84 | #Disable appended dtb. |
| 85 | TARGET_KERNEL_APPEND_DTB := false |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 86 | |
Prakruthi Deepak Heragu | 47fdff5 | 2019-06-13 14:58:28 -0700 | [diff] [blame] | 87 | #Enable dtb in boot image and boot image header version 2 support. |
Prakruthi Deepak Heragu | 47fdff5 | 2019-06-13 14:58:28 -0700 | [diff] [blame] | 88 | BOARD_BOOTIMG_HEADER_VERSION := 2 |
| 89 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION) |
| 90 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 91 | #Enable PD locater/notifier |
| 92 | TARGET_PD_SERVICE_ENABLED := true |
| 93 | |
| 94 | #Enable peripheral manager |
| 95 | TARGET_PER_MGR_ENABLED := true |
| 96 | |
| 97 | # Enable dex pre-opt to speed up initial boot |
| 98 | ifeq ($(HOST_OS),linux) |
| 99 | ifeq ($(WITH_DEXPREOPT),) |
| 100 | WITH_DEXPREOPT := true |
| 101 | WITH_DEXPREOPT_PIC := true |
| 102 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 103 | # Retain classes.dex in APK's for non-user builds |
| 104 | DEX_PREOPT_DEFAULT := nostripping |
| 105 | endif |
| 106 | endif |
| 107 | endif |
| 108 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 109 | # Enable sensor multi HAL |
| 110 | USE_SENSOR_MULTI_HAL := true |
| 111 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 112 | #Enable INTERACTION_BOOST |
| 113 | TARGET_USES_INTERACTION_BOOST := true |
| 114 | |
David Ng | 716698c | 2018-03-23 12:30:23 -0700 | [diff] [blame] | 115 | #Enable DRM plugins 64 bit compilation |
| 116 | TARGET_ENABLE_MEDIADRM_64 := true |
| 117 | |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 118 | ifeq ($(ENABLE_VENDOR_IMAGE), false) |
Jignesh Mehta | b8fe2d8 | 2021-02-02 01:13:55 -0800 | [diff] [blame] | 119 | $(error "Vendor Image is mandatory !!") |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 120 | endif |
| 121 | |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 122 | BUILD_BROKEN_DUP_RULES := true |
| 123 | |
Divya Sharma | daa9a36 | 2020-01-15 13:02:43 -0800 | [diff] [blame] | 124 | # KEYSTONE(I1056bb73cc2f8796ed941b5dd7b333ef15c60891,b/147756744) |
Paresh Purabhiya | 58783d4 | 2020-02-04 20:48:24 +0530 | [diff] [blame] | 125 | BUILD_BROKEN_NINJA_USES_ENV_VARS := SDCLANG_AE_CONFIG SDCLANG_CONFIG SDCLANG_CONFIG_AOSP SDCLANG_SA_ENABLED |
Divya Sharma | daa9a36 | 2020-01-15 13:02:43 -0800 | [diff] [blame] | 126 | BUILD_BROKEN_NINJA_USES_ENV_VARS += TEMPORARY_DISABLE_PATH_RESTRICTIONS |
Lalit Kansara | 9faa82e | 2020-02-07 18:26:19 +0530 | [diff] [blame] | 127 | BUILD_BROKEN_PREBUILT_ELF_FILES := true |
P.Adarsh Reddy | 1491cd6 | 2020-03-09 12:16:37 +0530 | [diff] [blame] | 128 | BUILD_BROKEN_USES_BUILD_HOST_SHARED_LIBRARY := true |
| 129 | BUILD_BROKEN_USES_BUILD_HOST_EXECUTABLE := true |
| 130 | BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true |
| 131 | BUILD_BROKEN_USES_BUILD_HOST_STATIC_LIBRARY := true |
Divya Sharma | daa9a36 | 2020-01-15 13:02:43 -0800 | [diff] [blame] | 132 | |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 133 | #Enable VNDK Compliance |
| 134 | BOARD_VNDK_VERSION:=current |
vivek mehta | 2824c7c | 2021-02-24 20:23:10 -0800 | [diff] [blame] | 135 | RECOVERY_SNAPSHOT_VERSION := current |
YSR | a703010 | 2021-03-03 13:31:06 -0800 | [diff] [blame] | 136 | RAMDISK_SNAPSHOT_VERSION := current |
Smita Ghosh | aaafcc7 | 2018-11-30 16:12:53 -0800 | [diff] [blame] | 137 | Q_BU_DISABLE_MODULE := true |
| 138 | |
Vinay Verma | ca210fb | 2019-04-11 20:59:07 +0530 | [diff] [blame] | 139 | ###### Dynamic Partition Handling #### |
| 140 | ifneq ($(strip $(BOARD_DYNAMIC_PARTITION_ENABLE)),true) |
| 141 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
| 142 | BOARD_VENDORIMAGE_PARTITION_SIZE := 1073741824 |
| 143 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 |
Mulugeta Engdaw | 0a6d920 | 2019-05-29 12:11:40 -0700 | [diff] [blame] | 144 | BOARD_PRODUCTIMAGE_PARTITION_SIZE := 838860800 |
| 145 | ifeq ($(ENABLE_AB), true) |
| 146 | AB_OTA_PARTITIONS ?= system |
| 147 | endif |
Vinay Verma | ca210fb | 2019-04-11 20:59:07 +0530 | [diff] [blame] | 148 | else |
Mulugeta Engdaw | 0a6d920 | 2019-05-29 12:11:40 -0700 | [diff] [blame] | 149 | TARGET_COPY_OUT_PRODUCT := product |
Mohamed Moussa | 4811703 | 2020-04-15 03:00:38 -0700 | [diff] [blame] | 150 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
Mulugeta Engdaw | 0a6d920 | 2019-05-29 12:11:40 -0700 | [diff] [blame] | 151 | BOARD_USES_PRODUCTIMAGE := true |
| 152 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
Mohamed Moussa | 4811703 | 2020-04-15 03:00:38 -0700 | [diff] [blame] | 153 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
Vinay Verma | ca210fb | 2019-04-11 20:59:07 +0530 | [diff] [blame] | 154 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := false |
Divya Sharma | 415749b | 2019-09-10 14:51:09 -0700 | [diff] [blame] | 155 | BOARD_SUPER_PARTITION_SIZE := 12884901888 |
Vinay Verma | ca210fb | 2019-04-11 20:59:07 +0530 | [diff] [blame] | 156 | BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions |
Mohamed Moussa | 4811703 | 2020-04-15 03:00:38 -0700 | [diff] [blame] | 157 | BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := system system_ext product |
Divya Sharma | 415749b | 2019-09-10 14:51:09 -0700 | [diff] [blame] | 158 | BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 6438256640 |
padarshr | 9712f01 | 2019-07-01 19:48:07 +0530 | [diff] [blame] | 159 | BOARD_EXT4_SHARE_DUP_BLOCKS := true |
Mulugeta Engdaw | 0a6d920 | 2019-05-29 12:11:40 -0700 | [diff] [blame] | 160 | ifeq ($(ENABLE_AB), true) |
Mohamed Moussa | 4811703 | 2020-04-15 03:00:38 -0700 | [diff] [blame] | 161 | AB_OTA_PARTITIONS ?= system system_ext product vbmeta_system |
Vinay Verma | ca210fb | 2019-04-11 20:59:07 +0530 | [diff] [blame] | 162 | endif |
Mohamed Moussa | 4811703 | 2020-04-15 03:00:38 -0700 | [diff] [blame] | 163 | endif |
Vinay Verma | ca210fb | 2019-04-11 20:59:07 +0530 | [diff] [blame] | 164 | ###### Dynamic Partition Handling #### |
padarshr | 1ebabf0 | 2018-12-14 19:20:10 +0530 | [diff] [blame] | 165 | |
| 166 | ################################################################################# |
| 167 | # This is the End of BoardConfig.mk file. |
| 168 | # Now, Pickup other split Board.mk files: |
| 169 | ################################################################################# |
| 170 | -include vendor/qcom/defs/board-defs/system/*.mk |
| 171 | ################################################################################# |
Suresh Reddy Yellala | 2fbf532 | 2019-08-28 12:19:56 -0700 | [diff] [blame] | 172 | include device/qcom/sepolicy/SEPolicy.mk |
vivek mehta | 2824c7c | 2021-02-24 20:23:10 -0800 | [diff] [blame] | 173 | |
| 174 | DIRECTED_VENDOR_SNAPSHOT := true |
| 175 | DIRECTED_RECOVERY_SNAPSHOT := true |
YSR | a703010 | 2021-03-03 13:31:06 -0800 | [diff] [blame] | 176 | DIRECTED_RAMDISK_SNAPSHOT := true |
| 177 | |
P.Adarsh Reddy | e021b10 | 2021-05-20 13:24:30 +0530 | [diff] [blame] | 178 | -include vendor/qcom/vsdk-configs/snapshot_modules/*/*.mk |