Disable sparse images for A/B updater targets
In past, brillo_update_payload was unsparsing all images before putting them in payload.bin, now we ought to unsparse them ourselves here. Change-Id: I69baa71678f8116ed8e256bd629a1af9bad13ba8
This commit is contained in:
parent
14ea1e60c6
commit
28d41a4097
1 changed files with 5 additions and 3 deletions
|
@ -2166,9 +2166,11 @@ $(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR),$(hide) echo "$(1)_squashfs_compr
|
|||
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT),$(hide) echo "$(1)_squashfs_compressor_opt=$(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT)" >> $(2))
|
||||
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN),$(hide) echo "$(1)_squashfs_disable_4k_align=$(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN)" >> $(2))
|
||||
$(if $(PRODUCT_$(_var)_BASE_FS_PATH),$(hide) echo "$(1)_base_fs_file=$(PRODUCT_$(_var)_BASE_FS_PATH)" >> $(2))
|
||||
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
||||
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
||||
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
||||
$(if $(filter true,$(AB_OTA_UPDATER)),,\
|
||||
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
||||
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
||||
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
||||
)
|
||||
$(if $(or $(_size), $(_reserved), $(_headroom)),,
|
||||
$(hide) echo "$(1)_disable_sparse=true" >> $(2))
|
||||
$(call add-common-flags-to-image-props,$(1),$(2))
|
||||
|
|
Loading…
Reference in a new issue