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