Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +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 |
Tianjie | a76d104 | 2021-03-12 11:42:05 -0800 | [diff] [blame] | 17 | include build/make/target/board/BoardConfigPixelCommon.mk |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 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. |
| 23 | TARGET_SOC := gs101 |
| 24 | |
| 25 | TARGET_SOC_NAME := google |
| 26 | |
| 27 | USES_DEVICE_GOOGLE_GS101 := true |
| 28 | |
| 29 | TARGET_ARCH := arm64 |
Philip Cuadra | 0111d39 | 2021-06-03 10:25:34 -0700 | [diff] [blame] | 30 | TARGET_ARCH_VARIANT := armv8-2a |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 31 | TARGET_CPU_ABI := arm64-v8a |
Philip Cuadra | 0111d39 | 2021-06-03 10:25:34 -0700 | [diff] [blame] | 32 | TARGET_CPU_VARIANT := cortex-a55 |
| 33 | TARGET_CPU_VARIANT_RUNTIME := cortex-a55 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 34 | |
Gina Ko | d8a9805 | 2022-03-14 18:26:30 +0000 | [diff] [blame] | 35 | DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false) |
Gina Ko | 18bd11a | 2022-02-25 17:05:22 -0800 | [diff] [blame] | 36 | |
| 37 | ifneq ($(DEVICE_IS_64BIT_ONLY),true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 38 | TARGET_2ND_ARCH := arm |
| 39 | TARGET_2ND_ARCH_VARIANT := armv8-a |
| 40 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 41 | TARGET_2ND_CPU_ABI2 := armeabi |
| 42 | TARGET_2ND_CPU_VARIANT := generic |
| 43 | TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a53 |
| 44 | endif |
| 45 | |
Minchan Kim | 5d13529 | 2021-03-17 15:13:38 -0700 | [diff] [blame] | 46 | BOARD_KERNEL_CMDLINE += dyndbg=\"func alloc_contig_dump_pages +p\" |
Oleg Matcovschi | 9963cf0 | 2021-03-23 14:03:45 -0700 | [diff] [blame] | 47 | BOARD_KERNEL_CMDLINE += earlycon=exynos4210,0x10A00000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on |
Minchan Kim | 3623b57 | 2021-03-29 13:18:03 -0700 | [diff] [blame] | 48 | BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y |
Minchan Kim | c9f1408 | 2021-05-07 13:00:29 -0700 | [diff] [blame] | 49 | BOARD_KERNEL_CMDLINE += stack_depot_disable=off page_pinner=on |
Martin Liu | 5bcfdac | 2021-11-08 22:09:01 +0800 | [diff] [blame] | 50 | BOARD_KERNEL_CMDLINE += swiotlb=noforce |
Daniel Mentz | c37a73b | 2021-04-08 20:24:38 -0700 | [diff] [blame] | 51 | BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 52 | |
| 53 | TARGET_NO_BOOTLOADER := true |
Jason Chiu | d037bee | 2021-09-29 07:17:17 +0000 | [diff] [blame] | 54 | TARGET_NO_RADIOIMAGE := true |
Petri Gynther | 96a90bd | 2021-10-01 02:26:57 +0000 | [diff] [blame] | 55 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 56 | BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot.img) |
| 57 | else |
| 58 | BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot-user.img) |
| 59 | endif |
| 60 | ifneq (,$(BOARD_PREBUILT_BOOTIMAGE)) |
| 61 | TARGET_NO_KERNEL := true |
| 62 | else |
| 63 | TARGET_NO_KERNEL := false |
| 64 | endif |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 65 | BOARD_USES_GENERIC_KERNEL_IMAGE := true |
| 66 | BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT := true |
| 67 | BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT := true |
| 68 | TARGET_RECOVERY_WIPE := device/google/gs101/conf/recovery.wipe |
Eric Biggers | f739cf6 | 2021-08-30 14:09:06 -0700 | [diff] [blame] | 69 | |
| 70 | # This is the fstab file that will be included in the recovery image. Note that |
| 71 | # recovery doesn't care about the encryption settings, so it doesn't matter |
| 72 | # whether we use the normal or the fips fstab here. |
Cole Faust | 23a4d7b | 2022-01-05 14:44:44 -0800 | [diff] [blame] | 73 | TARGET_RECOVERY_FSTAB_GENRULE = gen_fstab.gs101 |
Eric Biggers | f739cf6 | 2021-08-30 14:09:06 -0700 | [diff] [blame] | 74 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 75 | TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888 |
| 76 | TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165 |
| 77 | TARGET_RECOVERY_UI_LIB := \ |
| 78 | librecovery_ui_pixel \ |
| 79 | libfstab |
| 80 | |
| 81 | AB_OTA_UPDATER := true |
| 82 | |
| 83 | AB_OTA_PARTITIONS += \ |
| 84 | system \ |
Ramji Jiyani | 58893b4 | 2022-03-09 10:58:46 -0800 | [diff] [blame] | 85 | system_dlkm \ |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 86 | system_ext \ |
| 87 | product \ |
| 88 | vbmeta_system |
| 89 | |
| 90 | ifneq ($(PRODUCT_BUILD_BOOT_IMAGE),false) |
| 91 | AB_OTA_PARTITIONS += boot |
| 92 | endif |
| 93 | ifneq ($(PRODUCT_BUILD_VENDOR_BOOT_IMAGE),false) |
| 94 | AB_OTA_PARTITIONS += vendor_boot |
| 95 | AB_OTA_PARTITIONS += dtbo |
| 96 | endif |
| 97 | ifneq ($(PRODUCT_BUILD_VBMETA_IMAGE),false) |
| 98 | AB_OTA_PARTITIONS += vbmeta |
| 99 | endif |
| 100 | |
| 101 | # EMULATOR common modules |
| 102 | BOARD_EMULATOR_COMMON_MODULES := liblight |
| 103 | |
| 104 | OVERRIDE_RS_DRIVER := libRSDriverArm.so |
| 105 | BOARD_EGL_CFG := device/google/gs101/conf/egl.cfg |
| 106 | #BOARD_USES_HGL := true |
| 107 | USE_OPENGL_RENDERER := true |
| 108 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
| 109 | BOARD_USES_EXYNOS5_COMMON_GRALLOC := true |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 110 | BOARD_USES_ALIGN_RESTRICTION := false |
Sean Callanan | 13c4abd | 2021-03-25 18:27:04 -0700 | [diff] [blame] | 111 | BOARD_USES_GRALLOC_ION_SYNC := true |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 112 | |
| 113 | # This should be the same value as USE_SWIFTSHADER in device.mk |
| 114 | BOARD_USES_SWIFTSHADER := false |
| 115 | |
| 116 | # Gralloc4 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 117 | ifeq ($(BOARD_USES_SWIFTSHADER),true) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 118 | $(call soong_config_set,arm_gralloc,gralloc_arm_no_external_afbc,true) |
| 119 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_basic,false) |
| 120 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_wideblk,false) |
| 121 | $(call soong_config_set,arm_gralloc,gralloc_init_afbc,false) |
| 122 | $(call soong_config_set,arm_gralloc,dpu_support_1010102_afbc,false) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 123 | else |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 124 | $(call soong_config_set,arm_gralloc,gralloc_arm_no_external_afbc,false) |
| 125 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_basic,true) |
| 126 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_wideblk,true) |
| 127 | $(call soong_config_set,arm_gralloc,gralloc_init_afbc,true) |
| 128 | $(call soong_config_set,arm_gralloc,dpu_support_1010102_afbc,true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 129 | endif # ifeq ($(BOARD_USES_SWIFTSHADER),true) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 130 | $(call soong_config_set,arm_gralloc,gralloc_ion_sync_on_lock,$(BOARD_USES_GRALLOC_ION_SYNC)) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 131 | |
| 132 | # Graphics |
| 133 | #BOARD_USES_EXYNOS_DATASPACE_FEATURE := true |
| 134 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 135 | # Enable chain partition for system. |
Ramji Jiyani | 58893b4 | 2022-03-09 10:58:46 -0800 | [diff] [blame] | 136 | BOARD_AVB_VBMETA_SYSTEM := system system_dlkm system_ext product |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 137 | BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 138 | BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048 |
| 139 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 140 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 1 |
| 141 | |
Will McVicker | b5b92ea | 2021-01-26 12:37:06 -0800 | [diff] [blame] | 142 | # Enable chained vbmeta for boot images |
| 143 | BOARD_AVB_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 144 | BOARD_AVB_BOOT_ALGORITHM := SHA256_RSA2048 |
| 145 | BOARD_AVB_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 146 | BOARD_AVB_BOOT_ROLLBACK_INDEX_LOCATION := 2 |
| 147 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 148 | TARGET_USERIMAGES_USE_EXT4 := true |
| 149 | TARGET_USERIMAGES_USE_F2FS := true |
| 150 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 11796480000 |
| 151 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs |
| 152 | PRODUCT_FS_COMPRESSION := 1 |
| 153 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 154 | BOARD_MOUNT_SDCARD_RW := true |
| 155 | |
| 156 | # product.img |
| 157 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 158 | TARGET_COPY_OUT_PRODUCT := product |
| 159 | |
| 160 | # system_ext.img |
| 161 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 162 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 163 | |
Ramji Jiyani | 58893b4 | 2022-03-09 10:58:46 -0800 | [diff] [blame] | 164 | # system_dlkm.img |
| 165 | BOARD_USES_SYSTEM_DLKMIMAGE := true |
| 166 | BOARD_SYSTEM_DLKMIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 167 | TARGET_COPY_OUT_SYSTEM_DLKM := system_dlkm |
| 168 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 169 | ######################## |
| 170 | # Video Codec |
| 171 | ######################## |
| 172 | # 1. Exynos C2 |
| 173 | BOARD_USE_CSC_FILTER := false |
| 174 | BOARD_USE_DEC_SW_CSC := true |
| 175 | BOARD_USE_ENC_SW_CSC := true |
| 176 | BOARD_SUPPORT_MFC_ENC_RGB := true |
Charlie Chen | 935a1dd | 2021-03-16 16:26:13 +0800 | [diff] [blame] | 177 | BOARD_USE_BLOB_ALLOCATOR := false |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 178 | ######################## |
| 179 | |
| 180 | BOARD_SUPER_PARTITION_SIZE := 8531214336 |
| 181 | BOARD_SUPER_PARTITION_GROUPS := google_dynamic_partitions |
Pat Tjin | 977ea34 | 2021-03-11 23:20:27 -0800 | [diff] [blame] | 182 | # Set size to BOARD_SUPER_PARTITION_SIZE - overhead (4MiB) (b/182237294) |
| 183 | BOARD_GOOGLE_DYNAMIC_PARTITIONS_SIZE := 8527020032 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 184 | BOARD_GOOGLE_DYNAMIC_PARTITIONS_PARTITION_LIST := \ |
| 185 | system \ |
Ramji Jiyani | 58893b4 | 2022-03-09 10:58:46 -0800 | [diff] [blame] | 186 | system_dlkm \ |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 187 | system_ext \ |
| 188 | product \ |
Daniel Mentz | fc05a5f | 2021-03-03 14:44:17 -0800 | [diff] [blame] | 189 | vendor \ |
| 190 | vendor_dlkm |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 191 | |
| 192 | # Set error limit to BOARD_SUPER_PARTITON_SIZE - 500MB |
| 193 | BOARD_SUPER_PARTITION_ERROR_LIMIT := 8006926336 |
| 194 | |
| 195 | # |
| 196 | # AUDIO & VOICE |
| 197 | # |
| 198 | BOARD_USES_GENERIC_AUDIO := true |
| 199 | |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 200 | $(call soong_config_set,aoc_audio_func,ext_hidl,true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 201 | |
| 202 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 203 | $(call soong_config_set,aoc_audio_func,dump_usecase_data,true) |
| 204 | $(call soong_config_set,aoc_audio_func,hal_socket_control,true) |
| 205 | $(call soong_config_set,aoc_audio_func,record_tunning_keys,true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 206 | endif |
| 207 | |
Carter Hsu | 977c44c | 2021-05-12 17:02:05 +0800 | [diff] [blame] | 208 | ifneq (,$(filter aosp_%,$(TARGET_PRODUCT))) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 209 | $(call soong_config_set,aoc_audio_func,aosp_build,true) |
Carter Hsu | 977c44c | 2021-05-12 17:02:05 +0800 | [diff] [blame] | 210 | endif |
| 211 | |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 212 | $(call soong_config_set,haptics,actuator_model,$(ACTUATOR_MODEL)) |
Vince Leung | 58180f0 | 2021-08-27 03:50:21 +0000 | [diff] [blame] | 213 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 214 | # Primary AudioHAL Configuration |
| 215 | #BOARD_USE_COMMON_AUDIOHAL := true |
| 216 | #BOARD_USE_CALLIOPE_AUDIOHAL := false |
| 217 | #BOARD_USE_AUDIOHAL := true |
| 218 | |
| 219 | # Compress Offload Configuration |
| 220 | #BOARD_USE_OFFLOAD_AUDIO := true |
| 221 | #BOARD_USE_OFFLOAD_EFFECT := false |
| 222 | |
| 223 | # SoundTriggerHAL Configuration |
| 224 | #BOARD_USE_SOUNDTRIGGER_HAL := false |
| 225 | |
| 226 | # HWComposer |
| 227 | BOARD_HWC_VERSION := libhwc2.1 |
| 228 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := false |
| 229 | BOARD_HDMI_INCAPABLE := true |
| 230 | TARGET_USES_HWC2 := true |
| 231 | HWC_SKIP_VALIDATE := true |
| 232 | HWC_SUPPORT_RENDER_INTENT := true |
| 233 | HWC_SUPPORT_COLOR_TRANSFORM := true |
| 234 | #BOARD_USES_DISPLAYPORT := true |
| 235 | # if AFBC is enabled, must set ro.vendor.ddk.set.afbc=1 |
| 236 | BOARD_USES_EXYNOS_AFBC_FEATURE := true |
| 237 | #BOARD_USES_HDRUI_GLES_CONVERSION := true |
| 238 | |
| 239 | BOARD_LIBACRYL_DEFAULT_COMPOSITOR := fimg2d_gs101 |
| 240 | BOARD_LIBACRYL_G2D_HDR_PLUGIN := libacryl_hdr_plugin |
| 241 | |
| 242 | # HWCServices |
| 243 | BOARD_USES_HWC_SERVICES := true |
| 244 | |
| 245 | # WiFiDisplay |
| 246 | # BOARD_USES_VIRTUAL_DISPLAY := true |
| 247 | # BOARD_USES_VDS_EXYNOS_HWC := true |
| 248 | # BOARD_USES_WIFI_DISPLAY:= true |
| 249 | # BOARD_USES_EGL_SURFACE_FOR_COMPOSITION_MIXED := true |
| 250 | # BOARD_USES_VDS_YUV420SPM := true |
| 251 | # BOARD_USES_VDS_OTHERFORMAT := true |
| 252 | # BOARD_USES_VDS_DEBUG_FLAG := true |
| 253 | # BOARD_USES_DISABLE_COMPOSITIONTYPE_GLES := true |
| 254 | # BOARD_USES_SECURE_ENCODER_ONLY := true |
| 255 | # BOARD_USES_TSMUX := true |
| 256 | |
| 257 | # SCALER |
| 258 | BOARD_USES_DEFAULT_CSC_HW_SCALER := true |
| 259 | BOARD_DEFAULT_CSC_HW_SCALER := 4 |
| 260 | BOARD_USES_SCALER_M2M1SHOT := true |
| 261 | |
| 262 | # Device Tree |
| 263 | BOARD_USES_DT := true |
| 264 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 265 | BOARD_PREBUILT_DTBIMAGE_DIR := $(TARGET_KERNEL_DIR) |
| 266 | BOARD_PREBUILT_DTBOIMAGE := $(BOARD_PREBUILT_DTBIMAGE_DIR)/dtbo.img |
| 267 | |
| 268 | # PLATFORM LOG |
| 269 | TARGET_USES_LOGD := true |
| 270 | |
| 271 | # LIBHWJPEG |
| 272 | #TARGET_USES_UNIVERSAL_LIBHWJPEG := true |
| 273 | #LIBHWJPEG_HWSCALER_ID := 0 |
| 274 | |
| 275 | #Keymaster |
| 276 | #BOARD_USES_KEYMASTER_VER1 := true |
| 277 | |
| 278 | #FMP |
| 279 | #BOARD_USES_FMP_DM_CRYPT := true |
| 280 | #BOARD_USES_FMP_FSCRYPTO := true |
| 281 | BOARD_USES_METADATA_PARTITION := true |
| 282 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 283 | # SKIA |
| 284 | #BOARD_USES_SKIA_MULTITHREADING := true |
| 285 | #BOARD_USES_FIMGAPI_V5X := true |
| 286 | |
| 287 | # SECCOMP Policy |
| 288 | BOARD_SECCOMP_POLICY = device/google/gs101/seccomp_policy |
| 289 | |
| 290 | #CURL |
| 291 | BOARD_USES_CURL := true |
| 292 | |
| 293 | # Sensor HAL |
| 294 | BOARD_USES_EXYNOS_SENSORS_DUMMY := true |
| 295 | |
| 296 | # VISION |
| 297 | # Exynos vision framework (EVF) |
| 298 | #TARGET_USES_EVF := true |
| 299 | # HW acceleration |
| 300 | #TARGET_USES_VPU_KERNEL := true |
| 301 | #TARGET_USES_SCORE_KERNEL := true |
| 302 | #TARGET_USES_CL_KERNEL := false |
| 303 | |
| 304 | # exynos RIL |
| 305 | TARGET_EXYNOS_RIL_SOURCE := true |
| 306 | ENABLE_VENDOR_RIL_SERVICE := true |
| 307 | |
| 308 | # GNSS |
| 309 | # BOARD_USES_EXYNOS_GNSS_DUMMY := true |
| 310 | |
| 311 | # Bluetooth defines |
| 312 | # TODO(b/123695868): Remove the need for this |
| 313 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := \ |
| 314 | build/make/target/board/mainline_arm64/bluetooth |
| 315 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 316 | #VNDK |
| 317 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 318 | BOARD_VNDK_VERSION := current |
| 319 | |
| 320 | # H/W align restriction of MM IPs |
| 321 | BOARD_EXYNOS_S10B_FORMAT_ALIGN := 64 |
| 322 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 323 | # NeuralNetworks |
| 324 | GPU_SOURCE_PRESENT := $(wildcard vendor/arm/mali/valhall) |
linjoey | 3097b78 | 2021-05-26 11:24:26 +0800 | [diff] [blame] | 325 | GPU_PREBUILD_PRESENT := $(wildcard vendor/google_devices/gs101/prebuilts/gpu/libs) |
Sasha Smundak | 70f028e | 2021-09-02 11:29:01 -0700 | [diff] [blame] | 326 | ifneq (,$(strip $(GPU_SOURCE_PRESENT) $(GPU_PREBUILD_PRESENT))) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 327 | ARMNN_COMPUTE_CL_ENABLE := 1 |
| 328 | else |
| 329 | ARMNN_COMPUTE_CL_ENABLE := 0 |
| 330 | endif |
| 331 | ARMNN_COMPUTE_NEON_ENABLE := 1 |
| 332 | |
| 333 | # Boot.img |
| 334 | BOARD_RAMDISK_USE_LZ4 := true |
| 335 | #BOARD_KERNEL_BASE := 0x80000000 |
| 336 | #BOARD_KERNEL_PAGESIZE := 2048 |
| 337 | #BOARD_KERNEL_OFFSET := 0x80000 |
| 338 | #BOARD_RAMDISK_OFFSET := 0x4000000 |
Daniel Mentz | c37a73b | 2021-04-08 20:24:38 -0700 | [diff] [blame] | 339 | BOARD_BOOT_HEADER_VERSION := 4 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 340 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 341 | |
Daniel Mentz | c37a73b | 2021-04-08 20:24:38 -0700 | [diff] [blame] | 342 | BOARD_VENDOR_RAMDISK_FRAGMENTS := dlkm |
| 343 | BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm.KERNEL_MODULE_DIRS := top |
| 344 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 345 | # Enable AVB2.0 |
| 346 | BOARD_AVB_ENABLE := true |
| 347 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 348 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 349 | BOARD_DTBOIMG_PARTITION_SIZE := 0x01000000 |
| 350 | |
| 351 | # System As Root |
| 352 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := false |
| 353 | |
Petri Gynther | 3c5da8c | 2021-03-07 01:19:46 -0800 | [diff] [blame] | 354 | # Vendor ramdisk image for kernel development |
| 355 | BOARD_BUILD_VENDOR_RAMDISK_IMAGE := true |
| 356 | |
Daniel Mentz | 6a6d8f8 | 2021-05-11 22:58:19 -0700 | [diff] [blame] | 357 | KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR) |
| 358 | KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 359 | |
Robin Peng | 85e1485 | 2022-01-21 18:08:36 +0800 | [diff] [blame] | 360 | BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(KERNEL_MODULE_DIR)/vendor_dlkm.modules.blocklist |
| 361 | |
Daniel Mentz | 6a6d8f8 | 2021-05-11 22:58:19 -0700 | [diff] [blame] | 362 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_boot.modules.load)) |
| 363 | ifndef BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD |
| 364 | $(error vendor_boot.modules.load not found or empty) |
| 365 | endif |
| 366 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD))) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 367 | |
Daniel Mentz | 6a6d8f8 | 2021-05-11 22:58:19 -0700 | [diff] [blame] | 368 | BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_dlkm.modules.load)) |
| 369 | ifndef BOARD_VENDOR_KERNEL_MODULES_LOAD |
| 370 | $(error vendor_dlkm.modules.load not found or empty) |
| 371 | endif |
| 372 | BOARD_VENDOR_KERNEL_MODULES := $(KERNEL_MODULES) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 373 | |
| 374 | # Using BUILD_COPY_HEADERS |
| 375 | BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true |
| 376 | |
| 377 | include device/google/gs101-sepolicy/gs101-sepolicy.mk |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 378 | |
| 379 | # Battery options |
| 380 | BOARD_KERNEL_CMDLINE += at24.write_timeout=100 |
J. Avila | df9dc5c | 2021-04-12 18:22:36 +0000 | [diff] [blame] | 381 | |
| 382 | # Enable larger logbuf |
| 383 | BOARD_KERNEL_CMDLINE += log_buf_len=1024K |
Jeffrey Carlyle | 15d8348 | 2021-06-15 08:26:29 -0700 | [diff] [blame] | 384 | |
David Brazdil | ae3c59f | 2021-10-12 16:09:56 +0000 | [diff] [blame] | 385 | # Protected VM firmware |
David Brazdil | ae3c59f | 2021-10-12 16:09:56 +0000 | [diff] [blame] | 386 | BOARD_PVMFWIMAGE_PARTITION_SIZE := 0x00100000 |
David Brazdil | ae3c59f | 2021-10-12 16:09:56 +0000 | [diff] [blame] | 387 | |
Jeffrey Carlyle | 15d8348 | 2021-06-15 08:26:29 -0700 | [diff] [blame] | 388 | -include vendor/google_devices/gs101/proprietary/BoardConfigVendor.mk |