| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2019 The Android Open-Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | include build/make/target/board/BoardConfigMainlineCommon.mk |
| 17 | include build/make/target/board/BoardConfigPixelCommon.mk |
| 18 | |
| 19 | # Should be uncommented after fixing vndk-sp violation is fixed. |
| 20 | PRODUCT_FULL_TREBLE_OVERRIDE := true |
| 21 | |
| 22 | # HACK : To fix up after bring up multimedia devices. |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 23 | TARGET_SOC := zuma |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 24 | |
| 25 | TARGET_SOC_NAME := google |
| 26 | |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 27 | USES_DEVICE_GOOGLE_ZUMA := true |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 28 | |
| 29 | TARGET_ARCH := arm64 |
| 30 | TARGET_ARCH_VARIANT := armv8-2a |
| 31 | TARGET_CPU_ABI := arm64-v8a |
| 32 | TARGET_CPU_VARIANT := cortex-a55 |
| 33 | TARGET_CPU_VARIANT_RUNTIME := cortex-a55 |
| 34 | |
| 35 | BOARD_KERNEL_CMDLINE += dyndbg=\"func alloc_contig_dump_pages +p\" |
| Woody Lin | a81ed6f | 2022-07-20 13:43:55 +0800 | [diff] [blame] | 36 | BOARD_KERNEL_CMDLINE += earlycon=exynos4210,0x10870000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 37 | BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y |
| 38 | BOARD_KERNEL_CMDLINE += cgroup_disable=memory |
| 39 | BOARD_KERNEL_CMDLINE += rcupdate.rcu_expedited=1 rcu_nocbs=all |
| 40 | BOARD_KERNEL_CMDLINE += stack_depot_disable=off page_pinner=on |
| 41 | BOARD_KERNEL_CMDLINE += swiotlb=1024 |
| Jaegeuk Kim | 5fe1016 | 2022-06-23 23:49:46 -0700 | [diff] [blame] | 42 | BOARD_BOOTCONFIG += androidboot.boot_devices=13200000.ufs |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 43 | |
| 44 | TARGET_NO_BOOTLOADER := true |
| 45 | TARGET_NO_RADIOIMAGE := true |
| 46 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 47 | BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot.img) |
| 48 | else |
| 49 | BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot-user.img) |
| 50 | endif |
| 51 | ifneq (,$(BOARD_PREBUILT_BOOTIMAGE)) |
| 52 | TARGET_NO_KERNEL := true |
| 53 | else |
| 54 | TARGET_NO_KERNEL := false |
| 55 | endif |
| 56 | BOARD_USES_GENERIC_KERNEL_IMAGE := true |
| 57 | BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT := true |
| 58 | BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT := true |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 59 | TARGET_RECOVERY_WIPE := device/google/zuma/conf/recovery.wipe |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 60 | |
| 61 | # This is the fstab file that will be included in the recovery image. Note that |
| 62 | # recovery doesn't care about the encryption settings, so it doesn't matter |
| 63 | # whether we use the normal or the fips fstab here. |
| Jaegeuk Kim | 1f7770e | 2022-07-01 11:24:04 -0700 | [diff] [blame] | 64 | TARGET_RECOVERY_FSTAB_GENRULE := gen_fstab.zuma-sw-encrypt |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 65 | |
| 66 | TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888 |
| 67 | TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165 |
| 68 | TARGET_RECOVERY_UI_LIB := \ |
| 69 | librecovery_ui_pixel \ |
| 70 | libfstab |
| 71 | |
| 72 | AB_OTA_UPDATER := true |
| 73 | |
| 74 | AB_OTA_PARTITIONS += \ |
| 75 | system \ |
| 76 | system_dlkm \ |
| 77 | system_ext \ |
| 78 | product \ |
| 79 | vbmeta_system |
| 80 | |
| 81 | ifneq ($(PRODUCT_BUILD_BOOT_IMAGE),false) |
| 82 | AB_OTA_PARTITIONS += boot |
| 83 | endif |
| 84 | ifneq ($(PRODUCT_BUILD_INIT_BOOT_IMAGE), false) |
| 85 | AB_OTA_PARTITIONS += init_boot |
| 86 | endif |
| 87 | ifneq ($(PRODUCT_BUILD_VENDOR_BOOT_IMAGE),false) |
| 88 | AB_OTA_PARTITIONS += vendor_boot |
| 89 | AB_OTA_PARTITIONS += dtbo |
| 90 | endif |
| Lucas Wei | bac1bc5 | 2022-06-09 17:17:30 +0800 | [diff] [blame] | 91 | ifeq ($(PRODUCT_BUILD_VENDOR_KERNEL_BOOT_IMAGE),true) |
| 92 | AB_OTA_PARTITIONS += vendor_kernel_boot |
| 93 | endif |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 94 | ifneq ($(PRODUCT_BUILD_VBMETA_IMAGE),false) |
| 95 | AB_OTA_PARTITIONS += vbmeta |
| 96 | endif |
| 97 | ifneq ($(PRODUCT_BUILD_PVMFW_IMAGE),false) |
| 98 | AB_OTA_PARTITIONS += pvmfw |
| 99 | endif |
| 100 | |
| 101 | # EMULATOR common modules |
| 102 | BOARD_EMULATOR_COMMON_MODULES := liblight |
| 103 | |
| 104 | OVERRIDE_RS_DRIVER := libRSDriverArm.so |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 105 | BOARD_EGL_CFG := device/google/zuma/conf/egl.cfg |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 106 | #BOARD_USES_HGL := true |
| 107 | USE_OPENGL_RENDERER := true |
| 108 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
| 109 | BOARD_USES_EXYNOS5_COMMON_GRALLOC := true |
| Hyunki00.koo | 96cc5bf | 2022-06-30 17:40:52 -0700 | [diff] [blame] | 110 | BOARD_USES_EXYNOS_GRALLOC_VERSION := 4 |
| 111 | #BOARD_USES_EXYNOS_GRALLOC_VERSION := $(DEVICE_USES_EXYNOS_GRALLOC_VERSION) |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 112 | BOARD_USES_ALIGN_RESTRICTION := false |
| 113 | BOARD_USES_GRALLOC_ION_SYNC := true |
| 114 | |
| 115 | # This should be the same value as USE_SWIFTSHADER in device.mk |
| Siddharth Kapoor | 4d9d79c | 2022-07-19 14:26:36 -0700 | [diff] [blame] | 116 | BOARD_USES_SWIFTSHADER := false |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 117 | |
| 118 | # Gralloc4 |
| 119 | ifeq ($(BOARD_USES_EXYNOS_GRALLOC_VERSION),4) |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 120 | ifeq ($(BOARD_USES_SWIFTSHADER),true) |
| Oleg Matcovschi | 1325569 | 2022-07-20 16:37:37 -0700 | [diff] [blame] | 121 | TARGET_DISABLE_TRIPLE_BUFFERING := true |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 122 | $(call soong_config_set,arm_gralloc,gralloc_arm_no_external_afbc,true) |
| 123 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_basic,false) |
| 124 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_wideblk,false) |
| 125 | $(call soong_config_set,arm_gralloc,gralloc_init_afbc,false) |
| 126 | $(call soong_config_set,arm_gralloc,dpu_support_1010102_afbc,false) |
| 127 | else |
| 128 | $(call soong_config_set,arm_gralloc,gralloc_arm_no_external_afbc,false) |
| 129 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_basic,true) |
| 130 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_wideblk,true) |
| 131 | $(call soong_config_set,arm_gralloc,gralloc_init_afbc,true) |
| 132 | $(call soong_config_set,arm_gralloc,dpu_support_1010102_afbc,true) |
| 133 | endif # ifeq ($(BOARD_USES_SWIFTSHADER),true) |
| 134 | $(call soong_config_set,arm_gralloc,gralloc_ion_sync_on_lock,$(BOARD_USES_GRALLOC_ION_SYNC)) |
| 135 | endif # ifeq ($(BOARD_USES_EXYNOS_GRALLOC_VERSION),4) |
| 136 | |
| 137 | # libVendorGraphicbuffer |
| 138 | ifeq ($(BOARD_USES_EXYNOS_GRALLOC_VERSION),4) |
| 139 | $(call soong_config_set,vendorgraphicbuffer,gralloc_version,four) |
| 140 | else |
| 141 | $(call soong_config_set,vendorgraphicbuffer,gralloc_version,three) |
| 142 | endif |
| 143 | |
| 144 | # Graphics |
| 145 | #BOARD_USES_EXYNOS_DATASPACE_FEATURE := true |
| 146 | |
| 147 | # Enable chain partition for system. |
| 148 | BOARD_AVB_VBMETA_SYSTEM := system system_dlkm system_ext product |
| 149 | BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 150 | BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048 |
| 151 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 152 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 1 |
| 153 | |
| 154 | # Enable chained vbmeta for boot images |
| 155 | BOARD_AVB_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 156 | BOARD_AVB_BOOT_ALGORITHM := SHA256_RSA2048 |
| 157 | BOARD_AVB_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 158 | BOARD_AVB_BOOT_ROLLBACK_INDEX_LOCATION := 2 |
| 159 | |
| 160 | # Enable chained vbmeta for init_boot images |
| 161 | BOARD_AVB_INIT_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 162 | BOARD_AVB_INIT_BOOT_ALGORITHM := SHA256_RSA2048 |
| 163 | BOARD_AVB_INIT_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 164 | BOARD_AVB_INIT_BOOT_ROLLBACK_INDEX_LOCATION := 4 |
| 165 | |
| 166 | TARGET_USERIMAGES_USE_EXT4 := true |
| 167 | TARGET_USERIMAGES_USE_F2FS := true |
| 168 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 11796480000 |
| 169 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs |
| 170 | PRODUCT_FS_COMPRESSION := 1 |
| 171 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 172 | BOARD_MOUNT_SDCARD_RW := true |
| 173 | |
| 174 | # system.img |
| Jaegeuk Kim | 39e4495 | 2022-06-24 08:40:14 -0700 | [diff] [blame] | 175 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4 |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 176 | |
| 177 | # product.img |
| Jaegeuk Kim | 39e4495 | 2022-06-24 08:40:14 -0700 | [diff] [blame] | 178 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 179 | TARGET_COPY_OUT_PRODUCT := product |
| 180 | |
| 181 | # system_ext.img |
| Jaegeuk Kim | 39e4495 | 2022-06-24 08:40:14 -0700 | [diff] [blame] | 182 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 183 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 184 | |
| 185 | # persist.img |
| 186 | BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := f2fs |
| 187 | |
| 188 | ######################## |
| 189 | # Video Codec |
| 190 | ######################## |
| 191 | # 1. Exynos C2 |
| Taehwan Kim | 4307f59 | 2022-07-14 14:59:19 -0700 | [diff] [blame] | 192 | BOARD_USE_CODEC2_HIDL_1_2 := true |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 193 | BOARD_USE_CSC_FILTER := false |
| 194 | BOARD_USE_DEC_SW_CSC := true |
| 195 | BOARD_USE_ENC_SW_CSC := true |
| 196 | BOARD_SUPPORT_MFC_ENC_RGB := true |
| 197 | BOARD_USE_BLOB_ALLOCATOR := false |
| 198 | ######################## |
| 199 | |
| 200 | BOARD_SUPER_PARTITION_SIZE := 8531214336 |
| 201 | BOARD_SUPER_PARTITION_GROUPS := google_dynamic_partitions |
| 202 | # Set size to BOARD_SUPER_PARTITION_SIZE - overhead (4MiB) (b/182237294) |
| 203 | BOARD_GOOGLE_DYNAMIC_PARTITIONS_SIZE := 8527020032 |
| 204 | BOARD_GOOGLE_DYNAMIC_PARTITIONS_PARTITION_LIST := \ |
| 205 | system \ |
| 206 | system_dlkm \ |
| 207 | system_ext \ |
| 208 | product \ |
| 209 | vendor \ |
| 210 | vendor_dlkm |
| 211 | |
| 212 | # Set error limit to BOARD_SUPER_PARTITON_SIZE - 500MB |
| 213 | BOARD_SUPER_PARTITION_ERROR_LIMIT := 8006926336 |
| 214 | |
| 215 | # Build a separate system_dlkm partition |
| 216 | BOARD_USES_SYSTEM_DLKMIMAGE := true |
| Jaegeuk Kim | 39e4495 | 2022-06-24 08:40:14 -0700 | [diff] [blame] | 217 | BOARD_SYSTEM_DLKMIMAGE_FILE_SYSTEM_TYPE := ext4 |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 218 | TARGET_COPY_OUT_SYSTEM_DLKM := system_dlkm |
| 219 | |
| 220 | # |
| 221 | # AUDIO & VOICE |
| 222 | # |
| 223 | BOARD_USES_GENERIC_AUDIO := true |
| 224 | |
| 225 | $(call soong_config_set,aoc_audio_func,ext_hidl,true) |
| 226 | |
| 227 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 228 | $(call soong_config_set,aoc_audio_func,dump_usecase_data,true) |
| 229 | $(call soong_config_set,aoc_audio_func,hal_socket_control,true) |
| 230 | $(call soong_config_set,aoc_audio_func,record_tunning_keys,true) |
| 231 | endif |
| 232 | |
| 233 | ifneq (,$(filter aosp_%,$(TARGET_PRODUCT))) |
| 234 | $(call soong_config_set,aoc_audio_func,aosp_build,true) |
| 235 | endif |
| 236 | |
| 237 | # Primary AudioHAL Configuration |
| 238 | #BOARD_USE_COMMON_AUDIOHAL := true |
| 239 | #BOARD_USE_CALLIOPE_AUDIOHAL := false |
| 240 | #BOARD_USE_AUDIOHAL := true |
| 241 | |
| 242 | # Compress Offload Configuration |
| 243 | #BOARD_USE_OFFLOAD_AUDIO := true |
| 244 | #BOARD_USE_OFFLOAD_EFFECT := false |
| 245 | |
| 246 | # SoundTriggerHAL Configuration |
| 247 | #BOARD_USE_SOUNDTRIGGER_HAL := false |
| 248 | |
| 249 | # HWComposer |
| 250 | BOARD_HWC_VERSION := hwc3 |
| 251 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := false |
| 252 | BOARD_HDMI_INCAPABLE := true |
| 253 | TARGET_USES_HWC2 := true |
| 254 | HWC_SKIP_VALIDATE := true |
| 255 | HWC_SUPPORT_RENDER_INTENT := true |
| 256 | HWC_SUPPORT_COLOR_TRANSFORM := true |
| 257 | #BOARD_USES_DISPLAYPORT := true |
| 258 | # if AFBC is enabled, must set ro.vendor.ddk.set.afbc=1 |
| 259 | BOARD_USES_EXYNOS_AFBC_FEATURE := true |
| 260 | #BOARD_USES_HDRUI_GLES_CONVERSION := true |
| 261 | |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 262 | BOARD_LIBACRYL_DEFAULT_COMPOSITOR := fimg2d_zuma |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 263 | BOARD_LIBACRYL_G2D_HDR_PLUGIN := libacryl_hdr_plugin |
| 264 | |
| 265 | # HWCServices |
| 266 | BOARD_USES_HWC_SERVICES := true |
| 267 | |
| 268 | # WiFiDisplay |
| 269 | # BOARD_USES_VIRTUAL_DISPLAY := true |
| 270 | # BOARD_USES_VDS_EXYNOS_HWC := true |
| 271 | # BOARD_USES_WIFI_DISPLAY:= true |
| 272 | # BOARD_USES_EGL_SURFACE_FOR_COMPOSITION_MIXED := true |
| 273 | # BOARD_USES_VDS_YUV420SPM := true |
| 274 | # BOARD_USES_VDS_OTHERFORMAT := true |
| 275 | # BOARD_USES_VDS_DEBUG_FLAG := true |
| 276 | # BOARD_USES_DISABLE_COMPOSITIONTYPE_GLES := true |
| 277 | # BOARD_USES_SECURE_ENCODER_ONLY := true |
| 278 | # BOARD_USES_TSMUX := true |
| 279 | |
| 280 | # SCALER |
| 281 | BOARD_USES_DEFAULT_CSC_HW_SCALER := true |
| 282 | BOARD_DEFAULT_CSC_HW_SCALER := 4 |
| 283 | BOARD_USES_SCALER_M2M1SHOT := true |
| 284 | |
| 285 | # Device Tree |
| 286 | BOARD_USES_DT := true |
| 287 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 288 | BOARD_PREBUILT_DTBIMAGE_DIR := $(TARGET_KERNEL_DIR) |
| 289 | BOARD_PREBUILT_DTBOIMAGE := $(BOARD_PREBUILT_DTBIMAGE_DIR)/dtbo.img |
| 290 | |
| 291 | # PLATFORM LOG |
| 292 | TARGET_USES_LOGD := true |
| 293 | |
| 294 | # LIBHWJPEG |
| 295 | #TARGET_USES_UNIVERSAL_LIBHWJPEG := true |
| 296 | #LIBHWJPEG_HWSCALER_ID := 0 |
| 297 | |
| 298 | #Keymaster |
| 299 | #BOARD_USES_KEYMASTER_VER1 := true |
| 300 | |
| 301 | #FMP |
| 302 | #BOARD_USES_FMP_DM_CRYPT := true |
| 303 | #BOARD_USES_FMP_FSCRYPTO := true |
| 304 | BOARD_USES_METADATA_PARTITION := true |
| 305 | |
| 306 | # SKIA |
| 307 | #BOARD_USES_SKIA_MULTITHREADING := true |
| 308 | #BOARD_USES_FIMGAPI_V5X := true |
| 309 | |
| 310 | # SECCOMP Policy |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 311 | BOARD_SECCOMP_POLICY = device/google/zuma/seccomp_policy |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 312 | |
| 313 | #CURL |
| 314 | BOARD_USES_CURL := true |
| 315 | |
| 316 | # Sensor HAL |
| 317 | BOARD_USES_EXYNOS_SENSORS_DUMMY := true |
| 318 | |
| 319 | # VISION |
| 320 | # Exynos vision framework (EVF) |
| 321 | #TARGET_USES_EVF := true |
| 322 | # HW acceleration |
| 323 | #TARGET_USES_VPU_KERNEL := true |
| 324 | #TARGET_USES_SCORE_KERNEL := true |
| 325 | #TARGET_USES_CL_KERNEL := false |
| 326 | |
| 327 | # exynos RIL |
| 328 | TARGET_EXYNOS_RIL_SOURCE := true |
| 329 | ENABLE_VENDOR_RIL_SERVICE := true |
| 330 | |
| 331 | # GNSS |
| 332 | # BOARD_USES_EXYNOS_GNSS_DUMMY := true |
| 333 | |
| 334 | # Bluetooth defines |
| 335 | # TODO(b/123695868): Remove the need for this |
| 336 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := \ |
| 337 | build/make/target/board/mainline_arm64/bluetooth |
| 338 | |
| 339 | #VNDK |
| 340 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 341 | BOARD_VNDK_VERSION := current |
| 342 | |
| 343 | # H/W align restriction of MM IPs |
| 344 | BOARD_EXYNOS_S10B_FORMAT_ALIGN := 64 |
| 345 | |
| 346 | # NeuralNetworks |
| Siddharth Kapoor | 08f19d3 | 2022-08-09 18:29:00 -0700 | [diff] [blame] | 347 | GPU_SOURCE_PRESENT := $(wildcard vendor/arm/mali/valhall) |
| 348 | GPU_PREBUILD_PRESENT := $(wildcard vendor/google_devices/zuma/prebuilts/gpu) |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 349 | ifneq (,$(strip $(GPU_SOURCE_PRESENT) $(GPU_PREBUILD_PRESENT))) |
| Aaron Ding | 6b9a1e0 | 2022-04-24 12:39:56 +0800 | [diff] [blame] | 350 | ARMNN_COMPUTE_CL_ENABLE := 1 |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 351 | else |
| 352 | ARMNN_COMPUTE_CL_ENABLE := 0 |
| 353 | endif |
| 354 | ARMNN_COMPUTE_NEON_ENABLE := 1 |
| 355 | |
| 356 | # Boot.img |
| 357 | BOARD_RAMDISK_USE_LZ4 := true |
| 358 | #BOARD_KERNEL_BASE := 0x80000000 |
| 359 | #BOARD_KERNEL_PAGESIZE := 2048 |
| 360 | #BOARD_KERNEL_OFFSET := 0x80000 |
| 361 | #BOARD_RAMDISK_OFFSET := 0x4000000 |
| 362 | BOARD_BOOT_HEADER_VERSION := 4 |
| 363 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 364 | |
| 365 | BOARD_INIT_BOOT_HEADER_VERSION := 4 |
| 366 | BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION) |
| 367 | |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 368 | # Enable AVB2.0 |
| 369 | BOARD_AVB_ENABLE := true |
| 370 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 371 | BOARD_INIT_BOOT_IMAGE_PARTITION_SIZE := 0x800000 |
| 372 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 373 | BOARD_DTBOIMG_PARTITION_SIZE := 0x01000000 |
| 374 | |
| Lucas Wei | bac1bc5 | 2022-06-09 17:17:30 +0800 | [diff] [blame] | 375 | # Build vendor kernel boot image |
| 376 | BOARD_VENDOR_KERNEL_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 377 | |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 378 | # System As Root |
| 379 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := false |
| 380 | |
| 381 | # Vendor ramdisk image for kernel development |
| 382 | BOARD_BUILD_VENDOR_RAMDISK_IMAGE := true |
| 383 | |
| 384 | KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR) |
| 385 | KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko) |
| 386 | |
| Aaron Ding | 3d63c9d | 2022-05-16 18:51:23 +0800 | [diff] [blame] | 387 | # BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(KERNEL_MODULE_DIR)/vendor_dlkm.modules.blocklist |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 388 | |
| Lucas Wei | bac1bc5 | 2022-06-09 17:17:30 +0800 | [diff] [blame] | 389 | BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_kernel_boot.modules.load)) |
| 390 | ifndef BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD |
| 391 | $(error vendor_kernel_boot.modules.load not found or empty) |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 392 | endif |
| Lucas Wei | bac1bc5 | 2022-06-09 17:17:30 +0800 | [diff] [blame] | 393 | BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES := $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD))) |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 394 | |
| 395 | BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_dlkm.modules.load)) |
| 396 | ifndef BOARD_VENDOR_KERNEL_MODULES_LOAD |
| 397 | $(error vendor_dlkm.modules.load not found or empty) |
| 398 | endif |
| 399 | BOARD_VENDOR_KERNEL_MODULES := $(KERNEL_MODULES) |
| 400 | |
| 401 | # Using BUILD_COPY_HEADERS |
| 402 | BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true |
| 403 | |
| Aaron Ding | 66befd8 | 2022-04-15 18:52:04 +0800 | [diff] [blame] | 404 | include device/google/zuma-sepolicy/zuma-sepolicy.mk |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 405 | |
| 406 | # Battery options |
| 407 | BOARD_KERNEL_CMDLINE += at24.write_timeout=100 |
| 408 | |
| 409 | # Enable larger logbuf |
| 410 | BOARD_KERNEL_CMDLINE += log_buf_len=1024K |
| 411 | |
| Aaron Ding | d88f9a9 | 2022-04-15 13:16:16 +0800 | [diff] [blame] | 412 | # Protected VM firmware |
| 413 | BOARD_PVMFWIMAGE_PARTITION_SIZE := 0x00100000 |
| Jeffrey Carlyle | 819e3d1 | 2022-08-19 16:10:06 -0700 | [diff] [blame^] | 414 | |
| 415 | # pick up library for cleaning digital car keys on factory reset |
| 416 | -include vendor/google_devices/gs-common/proprietary/BoardConfigVendor.mk |