forked from openkylin/platform_build
Add vendor_dlkm, odm, odm_dlkm to dynamic partition filter
When building images in -without-vendor clients, we need to filter out: vendor, vendor_dlkm, odm, odm_dlkm from the dynamic partitions list for the OTA image build to succeed. Bug: 173653839 Bug: 182319837 Test: add vendor_dlkm, odm, odm_dlkm to dynamic partitions + make dist Change-Id: I899810c7f46e40730280d89b94047779705b6e2f
This commit is contained in:
parent
689e11a7ce
commit
09865a4911
|
@ -4549,11 +4549,26 @@ define fs_config
|
|||
(cd $(1); find . -type d | sed 's,$$,/,'; find . \! -type d) | cut -c 3- | sort | sed 's,^,$(2),' | $(HOST_OUT_EXECUTABLES)/fs_config -C -D $(TARGET_OUT) -S $(SELINUX_FC) -R "$(2)"
|
||||
endef
|
||||
|
||||
# Filter out vendor from the list for AOSP targets.
|
||||
# $(1): list
|
||||
define filter-out-missing-vendor
|
||||
$(if $(INSTALLED_VENDORIMAGE_TARGET),$(1),$(filter-out vendor,$(1)))
|
||||
endef
|
||||
define filter-out-missing-vendor_dlkm
|
||||
$(if $(INSTALLED_VENDOR_DLKMIMAGE_TARGET),$(1),$(filter-out vendor_dlkm,$(1)))
|
||||
endef
|
||||
define filter-out-missing-odm
|
||||
$(if $(INSTALLED_ODMIMAGE_TARGET),$(1),$(filter-out odm,$(1)))
|
||||
endef
|
||||
define filter-out-missing-odm_dlkm
|
||||
$(if $(INSTALLED_ODM_DLKMIMAGE_TARGET),$(1),$(filter-out odm_dlkm,$(1)))
|
||||
endef
|
||||
# Filter out vendor,vendor_dlkm,odm,odm_dlkm from the list for AOSP targets.
|
||||
# $(1): list
|
||||
define filter-out-missing-partitions
|
||||
$(call filter-out-missing-vendor,\
|
||||
$(call filter-out-missing-vendor_dlkm,\
|
||||
$(call filter-out-missing-odm,\
|
||||
$(call filter-out-missing-odm_dlkm,$(1)))))
|
||||
endef
|
||||
|
||||
# Information related to dynamic partitions and virtual A/B. This information
|
||||
# is needed for building the super image (see dump-super-image-info) and
|
||||
|
@ -4575,13 +4590,13 @@ define dump-dynamic-partitions-info
|
|||
$(foreach device,$(BOARD_SUPER_PARTITION_BLOCK_DEVICES), \
|
||||
echo "super_$(device)_device_size=$(BOARD_SUPER_PARTITION_$(call to-upper,$(device))_DEVICE_SIZE)" >> $(1);)
|
||||
$(if $(BOARD_SUPER_PARTITION_PARTITION_LIST), \
|
||||
echo "dynamic_partition_list=$(call filter-out-missing-vendor,$(BOARD_SUPER_PARTITION_PARTITION_LIST))" >> $(1))
|
||||
echo "dynamic_partition_list=$(call filter-out-missing-partitions,$(BOARD_SUPER_PARTITION_PARTITION_LIST))" >> $(1))
|
||||
$(if $(BOARD_SUPER_PARTITION_GROUPS),
|
||||
echo "super_partition_groups=$(BOARD_SUPER_PARTITION_GROUPS)" >> $(1))
|
||||
$(foreach group,$(BOARD_SUPER_PARTITION_GROUPS), \
|
||||
echo "super_$(group)_group_size=$(BOARD_$(call to-upper,$(group))_SIZE)" >> $(1); \
|
||||
$(if $(BOARD_$(call to-upper,$(group))_PARTITION_LIST), \
|
||||
echo "super_$(group)_partition_list=$(call filter-out-missing-vendor,$(BOARD_$(call to-upper,$(group))_PARTITION_LIST))" >> $(1);))
|
||||
echo "super_$(group)_partition_list=$(call filter-out-missing-partitions,$(BOARD_$(call to-upper,$(group))_PARTITION_LIST))" >> $(1);))
|
||||
$(if $(filter true,$(TARGET_USERIMAGES_SPARSE_EXT_DISABLED)), \
|
||||
echo "build_non_sparse_super_partition=true" >> $(1))
|
||||
$(if $(filter true,$(TARGET_USERIMAGES_SPARSE_F2FS_DISABLED)), \
|
||||
|
|
Loading…
Reference in New Issue