# Copyright (C) 2026 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.
# Put here the common configurations between all SDV core targets: # * sdv_core_arm64 # * sdv_core_cf
# Usually, only modules installed to system_dlkm don't get stripped during # build. Stripping kernel modules removes their signature, and unsigned modules # are subject to additional restrictions on what symbols those modules can # expose. # # Without setting this, virtio_pci_modern_dev.ko on arm64 fails to load due to # # virtio_pci_modern_dev: exports protected symbol vp_modern_config_vector # # Which causes the device to boot-loop.
BOARD_DO_NOT_STRIP_VENDOR_RAMDISK_MODULES := true
# The list of modules strictly/only required either to reach second stage # init, OR for recovery. Do not use this list to workaround second stage # issues. # # Depending on the specific module, they may exist under $(KERNEL_MODULES_PATH) # or $(SYSTEM_DLKM_SRC). virtio_blk.ko, virtio_console.ko, virtio_pci.ko, # virtio_pci_modern_dev.ko and vmw_vsock_virtio_transport.ko were added to # $(SYSTEM_DLKM_SRC) in May 2024, but remained in $(KERNEL_MODULES_PATH) until # Nov 2024, so including both with $(wildcard) just causes a build error before # the next prebuilts drop.
BOARD_VENDOR_RAMDISK_KERNEL_MODULES = \
$(KERNEL_MODULES_PATH)/failover.ko \
$(KERNEL_MODULES_PATH)/net_failover.ko \
$(KERNEL_MODULES_PATH)/virtio-rng.ko \
$(KERNEL_MODULES_PATH)/virtio_net.ko \
# GKI >6.4 will have an required vmw_vsock_virtio_transport_common.ko and vsock.ko
BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
$(wildcard $(KERNEL_MODULES_PATH)/vmw_vsock_virtio_transport_common.ko) \
$(wildcard $(KERNEL_MODULES_PATH)/vsock.ko)
# Disable sparse on all filesystem images # This will prevent sparsing of super.img
TARGET_USERIMAGES_SPARSE_EROFS_DISABLED ?= true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED ?= true
TARGET_USERIMAGES_SPARSE_F2FS_DISABLED ?= true
# 100 MiB is the minimum free space in userdata partition for checkpoint creation. # ~175MiB of free space is required in userdata partition to upload system updates. # A total of ~275MB of free space is needed.
BOARD_USERDATAIMAGE_PARTITION_SIZE := 996147200# 950 MiB
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
TARGET_USERIMAGES_USE_F2FS := true
# The /metadata partition is required for metadata encryption
BOARD_USES_METADATA_PARTITION := true
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.