Add compatibility check for system_manifest/compatibility_matrix.xml
Add compatibility check against device vintf schemas when framework schemas are built. Test: build with lunch marlin (that has manifest.xml) Test: build with mini_emulator_arm64 (that doesn't have manfiest.xml) Bug: 37321309 Change-Id: I87db152754d0185938bcef0c4395f477b8fd269b
This commit is contained in:
parent
b5cbe22b84
commit
c9ad35ce39
1 changed files with 16 additions and 3 deletions
|
@ -71,8 +71,15 @@ LOCAL_MODULE_CLASS := ETC
|
|||
LOCAL_MODULE_PATH := $(TARGET_OUT)
|
||||
|
||||
GEN := $(local-generated-sources-dir)/manifest.xml
|
||||
|
||||
$(GEN): PRIVATE_FLAGS :=
|
||||
ifdef BUILT_VENDOR_MATRIX
|
||||
$(GEN): $(BUILT_VENDOR_MATRIX)
|
||||
$(GEN): PRIVATE_FLAGS := -c "$(BUILT_VENDOR_MATRIX)"
|
||||
endif
|
||||
|
||||
$(GEN): $(FRAMEWORK_MANIFEST_FILE) $(HOST_OUT_EXECUTABLES)/assemble_vintf
|
||||
BOARD_SEPOLICY_VERS=$(BOARD_SEPOLICY_VERS) $(HOST_OUT_EXECUTABLES)/assemble_vintf -i $< -o $@
|
||||
BOARD_SEPOLICY_VERS=$(BOARD_SEPOLICY_VERS) $(HOST_OUT_EXECUTABLES)/assemble_vintf -i $< -o $@ $(PRIVATE_FLAGS)
|
||||
|
||||
LOCAL_PREBUILT_MODULE_FILE := $(GEN)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
@ -86,10 +93,16 @@ LOCAL_MODULE_CLASS := ETC
|
|||
LOCAL_MODULE_PATH := $(TARGET_OUT)
|
||||
|
||||
GEN := $(local-generated-sources-dir)/compatibility_matrix.xml
|
||||
|
||||
$(GEN): PRIVATE_FLAGS :=
|
||||
ifdef BUILT_VENDOR_MANIFEST
|
||||
$(GEN): $(BUILT_VENDOR_MANIFEST)
|
||||
$(GEN): PRIVATE_FLAGS := -c "$(BUILT_VENDOR_MANIFEST)"
|
||||
endif
|
||||
|
||||
$(GEN): $(FRAMEWORK_COMPATIBILITY_MATRIX_FILE) $(HOST_OUT_EXECUTABLES)/assemble_vintf
|
||||
# TODO(b/37405869) (b/37715375) inject avb versions as well for devices that have avb enabled.
|
||||
POLICYVERS=$(POLICYVERS) BOARD_SEPOLICY_VERS=$(BOARD_SEPOLICY_VERS) $(HOST_OUT_EXECUTABLES)/assemble_vintf -i $< -o $@
|
||||
|
||||
POLICYVERS=$(POLICYVERS) BOARD_SEPOLICY_VERS=$(BOARD_SEPOLICY_VERS) $(HOST_OUT_EXECUTABLES)/assemble_vintf -i $< -o $@ $(PRIVATE_FLAGS)
|
||||
LOCAL_PREBUILT_MODULE_FILE := $(GEN)
|
||||
include $(BUILD_PREBUILT)
|
||||
BUILT_SYSTEM_COMPATIBILITY_MATRIX := $(LOCAL_BUILT_MODULE)
|
||||
|
|
Loading…
Reference in a new issue