blob: 1c86f11081119f4407f328701a49fc4847c432c1 [file] [log] [blame]
Yifan Hong2d8442c2017-12-13 15:01:19 -08001#
2# Copyright (C) 2017 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
Yifan Hong44c9b2e2018-01-23 14:34:41 -080019BUILD_FRAMEWORK_COMPATIBILITY_MATRIX := $(LOCAL_PATH)/compatibility_matrix.mk
20
21# Clear potential input variables to BUILD_FRAMEWORK_COMPATIBILITY_MATRIX
22LOCAL_ADD_VBMETA_VERSION :=
23LOCAL_ASSEMBLE_VINTF_ENV_VARS :=
24LOCAL_ASSEMBLE_VINTF_FLAGS :=
25LOCAL_KERNEL_VERSIONS :=
26LOCAL_GEN_FILE_DEPENDENCIES :=
27
Yifan Hong2d8442c2017-12-13 15:01:19 -080028# Install all compatibility_matrix.*.xml to /system/etc/vintf
29
Yifan Hong44c9b2e2018-01-23 14:34:41 -080030
Yifan Hong2d8442c2017-12-13 15:01:19 -080031include $(CLEAR_VARS)
Yifan Hong2d8442c2017-12-13 15:01:19 -080032LOCAL_MODULE_STEM := compatibility_matrix.legacy.xml
33LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
Yifan Hong94b7d2c2018-01-23 15:38:49 -080034LOCAL_KERNEL_VERSIONS := 3.18.0 4.4.0 4.9.0
Yifan Hong44c9b2e2018-01-23 14:34:41 -080035include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
Yifan Hong2d8442c2017-12-13 15:01:19 -080036
37include $(CLEAR_VARS)
Yifan Hong2d8442c2017-12-13 15:01:19 -080038LOCAL_MODULE_STEM := compatibility_matrix.1.xml
39LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
Yifan Hong94b7d2c2018-01-23 15:38:49 -080040LOCAL_KERNEL_VERSIONS := 3.18.0 4.4.0 4.9.0
Yifan Hong44c9b2e2018-01-23 14:34:41 -080041include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
Yifan Hong2d8442c2017-12-13 15:01:19 -080042
43include $(CLEAR_VARS)
Yifan Hong2d8442c2017-12-13 15:01:19 -080044LOCAL_MODULE_STEM := compatibility_matrix.2.xml
45LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
Yifan Hong94b7d2c2018-01-23 15:38:49 -080046LOCAL_KERNEL_VERSIONS := 3.18.0 4.4.0 4.9.0
Yifan Hong44c9b2e2018-01-23 14:34:41 -080047include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
48
49# TODO(b/72409164): STOPSHIP: update kernel version requirements
Yifan Hong2d8442c2017-12-13 15:01:19 -080050
51include $(CLEAR_VARS)
Yifan Hong2d8442c2017-12-13 15:01:19 -080052LOCAL_MODULE_STEM := compatibility_matrix.current.xml
53LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
Yifan Hong94b7d2c2018-01-23 15:38:49 -080054LOCAL_KERNEL_VERSIONS := 4.4.0 4.9.0
Yifan Hong44c9b2e2018-01-23 14:34:41 -080055include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
Yifan Hong2d8442c2017-12-13 15:01:19 -080056
Yifan Hong44c9b2e2018-01-23 14:34:41 -080057# Framework Compatibility Matrix (common to all FCM versions)
58
Yifan Hong2d8442c2017-12-13 15:01:19 -080059include $(CLEAR_VARS)
Yifan Hong44c9b2e2018-01-23 14:34:41 -080060LOCAL_MODULE_STEM := compatibility_matrix.empty.xml
61LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
62LOCAL_ADD_VBMETA_VERSION := true
63LOCAL_ASSEMBLE_VINTF_ENV_VARS := \
64 POLICYVERS \
65 BOARD_SEPOLICY_VERS
Yifan Hong2d8442c2017-12-13 15:01:19 -080066
Yifan Hong44c9b2e2018-01-23 14:34:41 -080067include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
Yifan Hong2d8442c2017-12-13 15:01:19 -080068
69# Framework Compatibility Matrix
Yifan Hong2d8442c2017-12-13 15:01:19 -080070
Yifan Hong44c9b2e2018-01-23 14:34:41 -080071include $(CLEAR_VARS)
72LOCAL_MODULE := framework_compatibility_matrix.xml
73LOCAL_MODULE_STEM := compatibility_matrix.xml
74LOCAL_MODULE_PATH := $(TARGET_OUT)
Yifan Hong2d8442c2017-12-13 15:01:19 -080075LOCAL_REQUIRED_MODULES := \
76 framework_compatibility_matrix.legacy.xml \
77 framework_compatibility_matrix.1.xml \
78 framework_compatibility_matrix.2.xml \
79 framework_compatibility_matrix.current.xml \
80 framework_compatibility_matrix.empty.xml
Yifan Hong44c9b2e2018-01-23 14:34:41 -080081LOCAL_GENERATED_SOURCES := $(call module-installed-files,$(LOCAL_REQUIRED_MODULES))
Yifan Hong2d8442c2017-12-13 15:01:19 -080082
83ifdef BUILT_VENDOR_MANIFEST
Yifan Hong44c9b2e2018-01-23 14:34:41 -080084LOCAL_GEN_FILE_DEPENDENCIES += $(BUILT_VENDOR_MANIFEST)
85LOCAL_ASSEMBLE_VINTF_FLAGS += -c "$(BUILT_VENDOR_MANIFEST)"
Yifan Hong2d8442c2017-12-13 15:01:19 -080086endif
87
Yifan Hong44c9b2e2018-01-23 14:34:41 -080088LOCAL_ASSEMBLE_VINTF_ENV_VARS := PRODUCT_ENFORCE_VINTF_MANIFEST
Yifan Hong2d8442c2017-12-13 15:01:19 -080089
Yifan Hong44c9b2e2018-01-23 14:34:41 -080090include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
Yifan Hong2d8442c2017-12-13 15:01:19 -080091BUILT_SYSTEM_COMPATIBILITY_MATRIX := $(LOCAL_BUILT_MODULE)
Yifan Hong44c9b2e2018-01-23 14:34:41 -080092
93BUILD_FRAMEWORK_COMPATIBILITY_MATRIX :=