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 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 19 | # HACK : To fix up after bring up multimedia devices. |
| 20 | TARGET_SOC := gs101 |
| 21 | |
| 22 | TARGET_SOC_NAME := google |
| 23 | |
| 24 | USES_DEVICE_GOOGLE_GS101 := true |
kellyhung | 47aaa4b | 2024-10-22 10:19:45 +0000 | [diff] [blame] | 25 | $(call soong_config_set,CitadelProvision,target_soc,gs101) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 26 | |
| 27 | TARGET_ARCH := arm64 |
Philip Cuadra | 0111d39 | 2021-06-03 10:25:34 -0700 | [diff] [blame] | 28 | TARGET_ARCH_VARIANT := armv8-2a |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 29 | TARGET_CPU_ABI := arm64-v8a |
Philip Cuadra | 0111d39 | 2021-06-03 10:25:34 -0700 | [diff] [blame] | 30 | TARGET_CPU_VARIANT := cortex-a55 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 31 | |
Gina Ko | d8a9805 | 2022-03-14 18:26:30 +0000 | [diff] [blame] | 32 | DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false) |
Gina Ko | 18bd11a | 2022-02-25 17:05:22 -0800 | [diff] [blame] | 33 | |
| 34 | ifneq ($(DEVICE_IS_64BIT_ONLY),true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 35 | TARGET_2ND_ARCH := arm |
| 36 | TARGET_2ND_ARCH_VARIANT := armv8-a |
| 37 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 38 | TARGET_2ND_CPU_ABI2 := armeabi |
| 39 | TARGET_2ND_CPU_VARIANT := generic |
| 40 | TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a53 |
| 41 | endif |
| 42 | |
Minchan Kim | 5d13529 | 2021-03-17 15:13:38 -0700 | [diff] [blame] | 43 | BOARD_KERNEL_CMDLINE += dyndbg=\"func alloc_contig_dump_pages +p\" |
Oleg Matcovschi | 9963cf0 | 2021-03-23 14:03:45 -0700 | [diff] [blame] | 44 | 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] | 45 | BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y |
Qais Yousef | 9adfff4 | 2024-08-12 14:31:07 +0000 | [diff] [blame] | 46 | BOARD_KERNEL_CMDLINE += rcupdate.rcu_expedited=1 rcu_nocbs=all rcutree.enable_rcu_lazy |
Martin Liu | 5bcfdac | 2021-11-08 22:09:01 +0800 | [diff] [blame] | 47 | BOARD_KERNEL_CMDLINE += swiotlb=noforce |
Robin Hsu | 60ef8d6 | 2024-10-14 02:50:00 +0000 | [diff] [blame] | 48 | BOARD_KERNEL_CMDLINE += cgroup.memory=nokmem |
Daniel Mentz | c37a73b | 2021-04-08 20:24:38 -0700 | [diff] [blame] | 49 | BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 50 | |
| 51 | TARGET_NO_BOOTLOADER := true |
Jason Chiu | d037bee | 2021-09-29 07:17:17 +0000 | [diff] [blame] | 52 | TARGET_NO_RADIOIMAGE := true |
Petri Gynther | 96a90bd | 2021-10-01 02:26:57 +0000 | [diff] [blame] | 53 | BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot.img) |
Petri Gynther | 96a90bd | 2021-10-01 02:26:57 +0000 | [diff] [blame] | 54 | ifneq (,$(BOARD_PREBUILT_BOOTIMAGE)) |
| 55 | TARGET_NO_KERNEL := true |
| 56 | else |
| 57 | TARGET_NO_KERNEL := false |
| 58 | endif |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 59 | BOARD_USES_GENERIC_KERNEL_IMAGE := true |
| 60 | BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT := true |
| 61 | BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT := true |
| 62 | TARGET_RECOVERY_WIPE := device/google/gs101/conf/recovery.wipe |
Eric Biggers | f739cf6 | 2021-08-30 14:09:06 -0700 | [diff] [blame] | 63 | |
| 64 | # This is the fstab file that will be included in the recovery image. Note that |
| 65 | # recovery doesn't care about the encryption settings, so it doesn't matter |
| 66 | # whether we use the normal or the fips fstab here. |
Cole Faust | 23a4d7b | 2022-01-05 14:44:44 -0800 | [diff] [blame] | 67 | TARGET_RECOVERY_FSTAB_GENRULE = gen_fstab.gs101 |
Eric Biggers | f739cf6 | 2021-08-30 14:09:06 -0700 | [diff] [blame] | 68 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 69 | TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888 |
| 70 | TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165 |
| 71 | TARGET_RECOVERY_UI_LIB := \ |
Nelson Li | c3aac00 | 2024-11-26 08:44:48 +0000 | [diff] [blame] | 72 | //hardware/google/pixel/recovery:librecovery_ui_pixel \ |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 73 | libfstab |
| 74 | |
| 75 | AB_OTA_UPDATER := true |
| 76 | |
| 77 | AB_OTA_PARTITIONS += \ |
| 78 | system \ |
| 79 | system_ext \ |
| 80 | product \ |
| 81 | vbmeta_system |
| 82 | |
| 83 | ifneq ($(PRODUCT_BUILD_BOOT_IMAGE),false) |
| 84 | AB_OTA_PARTITIONS += boot |
| 85 | endif |
| 86 | ifneq ($(PRODUCT_BUILD_VENDOR_BOOT_IMAGE),false) |
| 87 | AB_OTA_PARTITIONS += vendor_boot |
| 88 | AB_OTA_PARTITIONS += dtbo |
| 89 | endif |
| 90 | ifneq ($(PRODUCT_BUILD_VBMETA_IMAGE),false) |
| 91 | AB_OTA_PARTITIONS += vbmeta |
| 92 | endif |
| 93 | |
| 94 | # EMULATOR common modules |
| 95 | BOARD_EMULATOR_COMMON_MODULES := liblight |
| 96 | |
| 97 | OVERRIDE_RS_DRIVER := libRSDriverArm.so |
| 98 | BOARD_EGL_CFG := device/google/gs101/conf/egl.cfg |
| 99 | #BOARD_USES_HGL := true |
| 100 | USE_OPENGL_RENDERER := true |
| 101 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
| 102 | BOARD_USES_EXYNOS5_COMMON_GRALLOC := true |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 103 | BOARD_USES_ALIGN_RESTRICTION := false |
Sean Callanan | 13c4abd | 2021-03-25 18:27:04 -0700 | [diff] [blame] | 104 | BOARD_USES_GRALLOC_ION_SYNC := true |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 105 | |
| 106 | # This should be the same value as USE_SWIFTSHADER in device.mk |
| 107 | BOARD_USES_SWIFTSHADER := false |
| 108 | |
| 109 | # Gralloc4 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 110 | ifeq ($(BOARD_USES_SWIFTSHADER),true) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 111 | $(call soong_config_set,arm_gralloc,gralloc_arm_no_external_afbc,true) |
| 112 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_basic,false) |
| 113 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_wideblk,false) |
| 114 | $(call soong_config_set,arm_gralloc,gralloc_init_afbc,false) |
| 115 | $(call soong_config_set,arm_gralloc,dpu_support_1010102_afbc,false) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 116 | else |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 117 | $(call soong_config_set,arm_gralloc,gralloc_arm_no_external_afbc,false) |
| 118 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_basic,true) |
| 119 | $(call soong_config_set,arm_gralloc,mali_gpu_support_afbc_wideblk,true) |
| 120 | $(call soong_config_set,arm_gralloc,gralloc_init_afbc,true) |
| 121 | $(call soong_config_set,arm_gralloc,dpu_support_1010102_afbc,true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 122 | endif # ifeq ($(BOARD_USES_SWIFTSHADER),true) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 123 | $(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] | 124 | |
| 125 | # Graphics |
| 126 | #BOARD_USES_EXYNOS_DATASPACE_FEATURE := true |
| 127 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 128 | # Enable chain partition for system. |
Akilesh Kailash | 7bb4293 | 2022-05-20 06:22:54 +0000 | [diff] [blame] | 129 | BOARD_AVB_VBMETA_SYSTEM := system system_ext product |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 130 | BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 131 | BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048 |
| 132 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 133 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 1 |
| 134 | |
Pierre-Clément Tosi | 3976412 | 2023-04-18 11:25:52 +0100 | [diff] [blame] | 135 | ifneq ($(PRODUCT_BUILD_PVMFW_IMAGE),false) |
| 136 | BOARD_AVB_VBMETA_SYSTEM += pvmfw |
| 137 | endif |
| 138 | |
Will McVicker | b5b92ea | 2021-01-26 12:37:06 -0800 | [diff] [blame] | 139 | # Enable chained vbmeta for boot images |
| 140 | BOARD_AVB_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 141 | BOARD_AVB_BOOT_ALGORITHM := SHA256_RSA2048 |
| 142 | BOARD_AVB_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 143 | BOARD_AVB_BOOT_ROLLBACK_INDEX_LOCATION := 2 |
| 144 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 145 | TARGET_USERIMAGES_USE_EXT4 := true |
| 146 | TARGET_USERIMAGES_USE_F2FS := true |
| 147 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 11796480000 |
| 148 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs |
| 149 | PRODUCT_FS_COMPRESSION := 1 |
| 150 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 151 | BOARD_MOUNT_SDCARD_RW := true |
| 152 | |
| 153 | # product.img |
| 154 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 155 | TARGET_COPY_OUT_PRODUCT := product |
| 156 | |
| 157 | # system_ext.img |
| 158 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 159 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 160 | |
| 161 | ######################## |
| 162 | # Video Codec |
| 163 | ######################## |
| 164 | # 1. Exynos C2 |
wenchangliu | d662abb | 2023-12-14 18:21:07 +0000 | [diff] [blame] | 165 | BOARD_USE_CODEC2_HIDL_1_2 := true |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 166 | BOARD_USE_CSC_FILTER := false |
| 167 | BOARD_USE_DEC_SW_CSC := true |
| 168 | BOARD_USE_ENC_SW_CSC := true |
| 169 | BOARD_SUPPORT_MFC_ENC_RGB := true |
Charlie Chen | 935a1dd | 2021-03-16 16:26:13 +0800 | [diff] [blame] | 170 | BOARD_USE_BLOB_ALLOCATOR := false |
Taehwan Kim | 4b4e181 | 2022-09-23 18:39:27 +0900 | [diff] [blame] | 171 | BOARD_SUPPORT_MFC_ENC_BT2020 := true |
wenchangliu | 49f6cdf | 2023-01-12 09:17:19 +0000 | [diff] [blame] | 172 | BOARD_SUPPORT_FLEXIBLE_P010 := true |
Herbert Xue | 17c4543 | 2024-11-06 11:00:15 +0800 | [diff] [blame] | 173 | $(call soong_config_set,video_codec,target_soc_name,$(TARGET_SOC_NAME)) |
| 174 | $(call soong_config_set_bool,video_codec,board_use_codec2_hidl_1_2,$(BOARD_USE_CODEC2_HIDL_1_2)) |
Herbert Xue | 89b6569 | 2024-11-19 15:33:05 +0800 | [diff] [blame] | 175 | $(call soong_config_set_bool,video_codec,board_use_csc_filter,$(BOARD_USE_CSC_FILTER)) |
Herbert Xue | 6a9c8ba | 2024-11-08 15:24:04 +0800 | [diff] [blame] | 176 | $(call soong_config_set_bool,video_codec,board_use_dec_sw_csc,$(BOARD_USE_DEC_SW_CSC)) |
Herbert Xue | 89b6569 | 2024-11-19 15:33:05 +0800 | [diff] [blame] | 177 | $(call soong_config_set_bool,video_codec,board_use_enc_sw_csc,$(BOARD_USE_ENC_SW_CSC)) |
| 178 | $(call soong_config_set_bool,video_codec,board_support_mfc_enc_rgb,$(BOARD_SUPPORT_MFC_ENC_RGB)) |
| 179 | $(call soong_config_set_bool,video_codec,board_use_blob_allocator,$(BOARD_USE_BLOB_ALLOCATOR)) |
Herbert Xue | 17c4543 | 2024-11-06 11:00:15 +0800 | [diff] [blame] | 180 | $(call soong_config_set_bool,video_codec,board_support_mfc_enc_bt2020,$(BOARD_SUPPORT_MFC_ENC_BT2020)) |
| 181 | $(call soong_config_set_bool,video_codec,board_support_flexible_p010,$(BOARD_SUPPORT_FLEXIBLE_P010)) |
| 182 | $(call soong_config_set_bool,video_codec,board_use_codec2_aidl,$(if $(BOARD_USE_CODEC2_AIDL),true,false)) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 183 | ######################## |
| 184 | |
| 185 | BOARD_SUPER_PARTITION_SIZE := 8531214336 |
| 186 | BOARD_SUPER_PARTITION_GROUPS := google_dynamic_partitions |
Pat Tjin | 977ea34 | 2021-03-11 23:20:27 -0800 | [diff] [blame] | 187 | # Set size to BOARD_SUPER_PARTITION_SIZE - overhead (4MiB) (b/182237294) |
| 188 | BOARD_GOOGLE_DYNAMIC_PARTITIONS_SIZE := 8527020032 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 189 | BOARD_GOOGLE_DYNAMIC_PARTITIONS_PARTITION_LIST := \ |
| 190 | system \ |
| 191 | system_ext \ |
| 192 | product \ |
Daniel Mentz | fc05a5f | 2021-03-03 14:44:17 -0800 | [diff] [blame] | 193 | vendor \ |
| 194 | vendor_dlkm |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 195 | |
Gina Ko | a417850 | 2024-03-26 18:10:50 -0700 | [diff] [blame] | 196 | # Set error limit to BOARD_SUPER_PARTITON_SIZE - 400MB |
| 197 | BOARD_SUPER_PARTITION_ERROR_LIMIT := 8111783936 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 198 | |
Vincent Palomares | f78d6a1 | 2022-04-27 13:15:11 -0700 | [diff] [blame] | 199 | # Testing related defines |
| 200 | BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/r4o6-setup.sh |
| 201 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 202 | # |
| 203 | # AUDIO & VOICE |
| 204 | # |
| 205 | BOARD_USES_GENERIC_AUDIO := true |
| 206 | |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 207 | $(call soong_config_set,aoc_audio_func,ext_hidl,true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 208 | |
| 209 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 210 | $(call soong_config_set,aoc_audio_func,dump_usecase_data,true) |
| 211 | $(call soong_config_set,aoc_audio_func,hal_socket_control,true) |
Jasmine Cha | 88ae21d | 2023-10-17 15:10:42 +0800 | [diff] [blame] | 212 | $(call soong_config_set,aoc_audio_func,record_tuning_keys,true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 213 | endif |
| 214 | |
Carter Hsu | 977c44c | 2021-05-12 17:02:05 +0800 | [diff] [blame] | 215 | ifneq (,$(filter aosp_%,$(TARGET_PRODUCT))) |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 216 | $(call soong_config_set,aoc_audio_func,aosp_build,true) |
Carter Hsu | 977c44c | 2021-05-12 17:02:05 +0800 | [diff] [blame] | 217 | endif |
| 218 | |
Sasha Smundak | b44a662 | 2021-12-15 10:00:29 -0800 | [diff] [blame] | 219 | $(call soong_config_set,haptics,actuator_model,$(ACTUATOR_MODEL)) |
Vince Leung | 58180f0 | 2021-08-27 03:50:21 +0000 | [diff] [blame] | 220 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 221 | # Primary AudioHAL Configuration |
| 222 | #BOARD_USE_COMMON_AUDIOHAL := true |
| 223 | #BOARD_USE_CALLIOPE_AUDIOHAL := false |
| 224 | #BOARD_USE_AUDIOHAL := true |
| 225 | |
| 226 | # Compress Offload Configuration |
| 227 | #BOARD_USE_OFFLOAD_AUDIO := true |
| 228 | #BOARD_USE_OFFLOAD_EFFECT := false |
| 229 | |
| 230 | # SoundTriggerHAL Configuration |
| 231 | #BOARD_USE_SOUNDTRIGGER_HAL := false |
| 232 | |
Chris Paulo | 2fd3696 | 2023-01-10 01:43:10 +0000 | [diff] [blame] | 233 | # Vibrator HAL actuator model and adaptive haptics configuration |
| 234 | $(call soong_config_set,haptics,actuator_model,$(ACTUATOR_MODEL)) |
| 235 | $(call soong_config_set,haptics,adaptive_haptics_feature,$(ADAPTIVE_HAPTICS_FEATURE)) |
| 236 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 237 | # HWComposer |
| 238 | BOARD_HWC_VERSION := libhwc2.1 |
| 239 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := false |
| 240 | BOARD_HDMI_INCAPABLE := true |
| 241 | TARGET_USES_HWC2 := true |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 242 | HWC_SUPPORT_RENDER_INTENT := true |
| 243 | HWC_SUPPORT_COLOR_TRANSFORM := true |
| 244 | #BOARD_USES_DISPLAYPORT := true |
| 245 | # if AFBC is enabled, must set ro.vendor.ddk.set.afbc=1 |
| 246 | BOARD_USES_EXYNOS_AFBC_FEATURE := true |
| 247 | #BOARD_USES_HDRUI_GLES_CONVERSION := true |
| 248 | |
| 249 | BOARD_LIBACRYL_DEFAULT_COMPOSITOR := fimg2d_gs101 |
| 250 | BOARD_LIBACRYL_G2D_HDR_PLUGIN := libacryl_hdr_plugin |
Bill Yang | ce576fa | 2024-10-22 10:36:29 +0000 | [diff] [blame] | 251 | $(call soong_config_set,acryl,libacryl_g2d_hdr_plugin,//hardware/google/graphics/gs101/libacryl_plugins:libacryl_hdr_plugin) |
| 252 | $(call soong_config_set,acryl,libacryl_c_include,hardware/google/graphics/$(TARGET_BOARD_PLATFORM)/libcap) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 253 | |
| 254 | # HWCServices |
| 255 | BOARD_USES_HWC_SERVICES := true |
| 256 | |
| 257 | # WiFiDisplay |
| 258 | # BOARD_USES_VIRTUAL_DISPLAY := true |
| 259 | # BOARD_USES_VDS_EXYNOS_HWC := true |
| 260 | # BOARD_USES_WIFI_DISPLAY:= true |
| 261 | # BOARD_USES_EGL_SURFACE_FOR_COMPOSITION_MIXED := true |
| 262 | # BOARD_USES_VDS_YUV420SPM := true |
| 263 | # BOARD_USES_VDS_OTHERFORMAT := true |
| 264 | # BOARD_USES_VDS_DEBUG_FLAG := true |
| 265 | # BOARD_USES_DISABLE_COMPOSITIONTYPE_GLES := true |
| 266 | # BOARD_USES_SECURE_ENCODER_ONLY := true |
| 267 | # BOARD_USES_TSMUX := true |
| 268 | |
| 269 | # SCALER |
| 270 | BOARD_USES_DEFAULT_CSC_HW_SCALER := true |
| 271 | BOARD_DEFAULT_CSC_HW_SCALER := 4 |
| 272 | BOARD_USES_SCALER_M2M1SHOT := true |
| 273 | |
| 274 | # Device Tree |
| 275 | BOARD_USES_DT := true |
| 276 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 277 | BOARD_PREBUILT_DTBIMAGE_DIR := $(TARGET_KERNEL_DIR) |
| 278 | BOARD_PREBUILT_DTBOIMAGE := $(BOARD_PREBUILT_DTBIMAGE_DIR)/dtbo.img |
| 279 | |
| 280 | # PLATFORM LOG |
| 281 | TARGET_USES_LOGD := true |
| 282 | |
| 283 | # LIBHWJPEG |
| 284 | #TARGET_USES_UNIVERSAL_LIBHWJPEG := true |
| 285 | #LIBHWJPEG_HWSCALER_ID := 0 |
| 286 | |
| 287 | #Keymaster |
| 288 | #BOARD_USES_KEYMASTER_VER1 := true |
| 289 | |
| 290 | #FMP |
| 291 | #BOARD_USES_FMP_DM_CRYPT := true |
| 292 | #BOARD_USES_FMP_FSCRYPTO := true |
| 293 | BOARD_USES_METADATA_PARTITION := true |
| 294 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 295 | # SKIA |
| 296 | #BOARD_USES_SKIA_MULTITHREADING := true |
| 297 | #BOARD_USES_FIMGAPI_V5X := true |
| 298 | |
| 299 | # SECCOMP Policy |
| 300 | BOARD_SECCOMP_POLICY = device/google/gs101/seccomp_policy |
| 301 | |
| 302 | #CURL |
| 303 | BOARD_USES_CURL := true |
| 304 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 305 | # VISION |
| 306 | # Exynos vision framework (EVF) |
| 307 | #TARGET_USES_EVF := true |
| 308 | # HW acceleration |
| 309 | #TARGET_USES_VPU_KERNEL := true |
| 310 | #TARGET_USES_SCORE_KERNEL := true |
| 311 | #TARGET_USES_CL_KERNEL := false |
| 312 | |
| 313 | # exynos RIL |
| 314 | TARGET_EXYNOS_RIL_SOURCE := true |
| 315 | ENABLE_VENDOR_RIL_SERVICE := true |
| 316 | |
| 317 | # GNSS |
| 318 | # BOARD_USES_EXYNOS_GNSS_DUMMY := true |
| 319 | |
| 320 | # Bluetooth defines |
| 321 | # TODO(b/123695868): Remove the need for this |
| 322 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := \ |
| 323 | build/make/target/board/mainline_arm64/bluetooth |
| 324 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 325 | #VNDK |
| 326 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 327 | BOARD_VNDK_VERSION := current |
| 328 | |
| 329 | # H/W align restriction of MM IPs |
| 330 | BOARD_EXYNOS_S10B_FORMAT_ALIGN := 64 |
| 331 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 332 | # Boot.img |
| 333 | BOARD_RAMDISK_USE_LZ4 := true |
| 334 | #BOARD_KERNEL_BASE := 0x80000000 |
| 335 | #BOARD_KERNEL_PAGESIZE := 2048 |
| 336 | #BOARD_KERNEL_OFFSET := 0x80000 |
| 337 | #BOARD_RAMDISK_OFFSET := 0x4000000 |
Daniel Mentz | c37a73b | 2021-04-08 20:24:38 -0700 | [diff] [blame] | 338 | BOARD_BOOT_HEADER_VERSION := 4 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 339 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 340 | |
Daniel Mentz | c37a73b | 2021-04-08 20:24:38 -0700 | [diff] [blame] | 341 | BOARD_VENDOR_RAMDISK_FRAGMENTS := dlkm |
| 342 | BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm.KERNEL_MODULE_DIRS := top |
| 343 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 344 | # Enable AVB2.0 |
| 345 | BOARD_AVB_ENABLE := true |
| 346 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 347 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 348 | BOARD_DTBOIMG_PARTITION_SIZE := 0x01000000 |
| 349 | |
Petri Gynther | 3c5da8c | 2021-03-07 01:19:46 -0800 | [diff] [blame] | 350 | # Vendor ramdisk image for kernel development |
| 351 | BOARD_BUILD_VENDOR_RAMDISK_IMAGE := true |
| 352 | |
Daniel Mentz | 6a6d8f8 | 2021-05-11 22:58:19 -0700 | [diff] [blame] | 353 | KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR) |
| 354 | KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 355 | |
Robin Peng | 85e1485 | 2022-01-21 18:08:36 +0800 | [diff] [blame] | 356 | BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(KERNEL_MODULE_DIR)/vendor_dlkm.modules.blocklist |
| 357 | |
Robin Peng | d790cec | 2024-01-26 12:50:28 +0000 | [diff] [blame] | 358 | # Since Pixel 6/6pro doesn't have a system_dlkm partition, the GKI modules are |
| 359 | # on the vendor_dlkm partition. In order to allow them to load properly, we |
| 360 | # need to retain the module signature which would normally get stripped during |
| 361 | # packaging. Disable stripping the vendor_dlkm modules to retain the GKI |
| 362 | # modules' signature. Note, the pixel kernel builds always strip the modules in |
| 363 | # favor of saving space via the kleaf property: strip_modules = True. |
| 364 | BOARD_DO_NOT_STRIP_VENDOR_MODULES := true |
| 365 | |
Daniel Mentz | f41ee9f | 2022-07-21 14:45:34 -0700 | [diff] [blame] | 366 | # Prebuilt kernel modules that are *not* listed in vendor_boot.modules.load |
Qian-Hao Huang | 32035fe | 2024-04-23 23:22:27 +0800 | [diff] [blame] | 367 | BOARD_PREBUILT_VENDOR_RAMDISK_KERNEL_MODULES = fips140.ko |
Daniel Mentz | f41ee9f | 2022-07-21 14:45:34 -0700 | [diff] [blame] | 368 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_EXTRA = $(foreach k,$(BOARD_PREBUILT_VENDOR_RAMDISK_KERNEL_MODULES),$(if $(wildcard $(KERNEL_MODULE_DIR)/$(k)), $(k))) |
Daniel Mentz | f41ee9f | 2022-07-21 14:45:34 -0700 | [diff] [blame] | 369 | |
| 370 | # Kernel modules that are listed in vendor_boot.modules.load |
Jacky Liu | acf7138 | 2024-08-05 11:59:57 +0800 | [diff] [blame] | 371 | # Starting from 6.1, use modules.load instead. It lists modules for vendor ramdisk regardless of the partition name. |
| 372 | ifneq ($(wildcard $(KERNEL_MODULE_DIR)/modules.load),) |
| 373 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE := $(strip $(shell cat $(KERNEL_MODULE_DIR)/modules.load)) |
| 374 | else |
| 375 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_boot.modules.load)) |
| 376 | endif |
Daniel Mentz | f41ee9f | 2022-07-21 14:45:34 -0700 | [diff] [blame] | 377 | ifndef BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE |
Daniel Mentz | 6a6d8f8 | 2021-05-11 22:58:19 -0700 | [diff] [blame] | 378 | $(error vendor_boot.modules.load not found or empty) |
| 379 | endif |
Daniel Mentz | f41ee9f | 2022-07-21 14:45:34 -0700 | [diff] [blame] | 380 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_EXTRA) |
| 381 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD += $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE) |
| 382 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(addprefix $(KERNEL_MODULE_DIR)/, $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_EXTRA)) |
| 383 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE))) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 384 | |
Yu Shan | 79c3603 | 2023-01-03 11:29:46 -0800 | [diff] [blame] | 385 | BOARD_VENDOR_KERNEL_MODULES_LOAD += $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_dlkm.modules.load)) |
Daniel Mentz | 6a6d8f8 | 2021-05-11 22:58:19 -0700 | [diff] [blame] | 386 | ifndef BOARD_VENDOR_KERNEL_MODULES_LOAD |
| 387 | $(error vendor_dlkm.modules.load not found or empty) |
| 388 | endif |
Yu Shan | 79c3603 | 2023-01-03 11:29:46 -0800 | [diff] [blame] | 389 | BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 390 | |
| 391 | # Using BUILD_COPY_HEADERS |
| 392 | BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true |
| 393 | |
| 394 | include device/google/gs101-sepolicy/gs101-sepolicy.mk |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 395 | |
| 396 | # Battery options |
| 397 | BOARD_KERNEL_CMDLINE += at24.write_timeout=100 |
J. Avila | df9dc5c | 2021-04-12 18:22:36 +0000 | [diff] [blame] | 398 | |
| 399 | # Enable larger logbuf |
| 400 | BOARD_KERNEL_CMDLINE += log_buf_len=1024K |
Jeffrey Carlyle | 15d8348 | 2021-06-15 08:26:29 -0700 | [diff] [blame] | 401 | |
David Brazdil | ae3c59f | 2021-10-12 16:09:56 +0000 | [diff] [blame] | 402 | # Protected VM firmware |
David Brazdil | ae3c59f | 2021-10-12 16:09:56 +0000 | [diff] [blame] | 403 | BOARD_PVMFWIMAGE_PARTITION_SIZE := 0x00100000 |
David Brazdil | ae3c59f | 2021-10-12 16:09:56 +0000 | [diff] [blame] | 404 | |
Jeffrey Carlyle | 489f819 | 2022-08-24 12:23:11 -0700 | [diff] [blame] | 405 | -include vendor/google_devices/gs-common/proprietary/BoardConfigVendor.mk |
maxwen | 5363dbc | 2022-11-12 03:58:54 +0100 | [diff] [blame] | 406 | |
| 407 | include device/google/gs101/BoardConfig-omni.mk |