BoardConfig: trim dynamic-sizing comments to match file style
This commit is contained in:
+6
-20
@@ -78,29 +78,15 @@ PRODUCT_MANIFEST_FILES := $(DEVICE_PATH)/product_manifest.xml
|
||||
BOARD_FLASH_BLOCK_SIZE := 4096
|
||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728 # 128M
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 8589934592 # 8192M (8GB)
|
||||
# Dynamically sized to content, not a fixed BOARD_SYSTEM_EXTIMAGE_PARTITION_SIZE
|
||||
# -- AOSP hard-errors (build/make/core/config.mk) if both a fixed size and a
|
||||
# reserved size are defined together once PRODUCT_USE_DYNAMIC_PARTITION_SIZE
|
||||
# is on (see vendor/pawlet/config/common.mk and BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE
|
||||
# above). This partition already had both set; harmless before dynamic sizing
|
||||
# was enabled product-wide, a hard build error now.
|
||||
# Dynamically sized to content. Can't also set a fixed PARTITION_SIZE (AOSP
|
||||
# errors) now that PRODUCT_USE_DYNAMIC_PARTITION_SIZE is on.
|
||||
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 104857600 # 100MB
|
||||
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
|
||||
# Dynamically sized to content (PRODUCT_USE_DYNAMIC_PARTITION_SIZE, set in
|
||||
# vendor/pawlet/config/common.mk), NOT a fixed BOARD_VENDORIMAGE_PARTITION_SIZE.
|
||||
# A fixed size forces vendor.img to always equal exactly that value byte for
|
||||
# byte -- this AOSP branch's build_image.py never shrinks a fixed-size ext4
|
||||
# image to its actual content. With BOARD_USES_FULL_RECOVERY_IMAGE := true,
|
||||
# AOSP's assert-max-image-size then checks vendor.img + recovery.img
|
||||
# (mkbootimg.mk's fixed 128M FAT container) together against that same fixed
|
||||
# ceiling, making "vendor.img + recovery.img <= ceiling" mathematically
|
||||
# impossible at ANY fixed value (X + 128M <= X has no solution). Dynamic
|
||||
# sizing plus the reserved size below (128M for recovery.img + 64M slack)
|
||||
# gives vendor.img real headroom instead of an unsatisfiable assertion.
|
||||
# On-flash vendor partition size in mkimg.sh is unaffected -- ext4 doesn't
|
||||
# need to fill its containing partition, so mkimg.sh's fixed VENDOR_SIZE
|
||||
# constant stays valid as the physical partition ceiling either way.
|
||||
# Dynamically sized to content (PRODUCT_USE_DYNAMIC_PARTITION_SIZE, common.mk)
|
||||
# instead of a fixed PARTITION_SIZE. A fixed vendor.img always fills its
|
||||
# declared size exactly, which combined with BOARD_USES_FULL_RECOVERY_IMAGE
|
||||
# made "vendor.img + recovery.img <= ceiling" impossible to satisfy.
|
||||
BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 201326592 # 192M (128M recovery.img + 64M slack)
|
||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
Reference in New Issue
Block a user