Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 19 | BUILD_FRAMEWORK_COMPATIBILITY_MATRIX := $(LOCAL_PATH)/compatibility_matrix.mk |
| 20 | |
| 21 | # Clear potential input variables to BUILD_FRAMEWORK_COMPATIBILITY_MATRIX |
| 22 | LOCAL_ADD_VBMETA_VERSION := |
| 23 | LOCAL_ASSEMBLE_VINTF_ENV_VARS := |
| 24 | LOCAL_ASSEMBLE_VINTF_FLAGS := |
| 25 | LOCAL_KERNEL_VERSIONS := |
| 26 | LOCAL_GEN_FILE_DEPENDENCIES := |
| 27 | |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 28 | # Install all compatibility_matrix.*.xml to /system/etc/vintf |
| 29 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 30 | |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 31 | include $(CLEAR_VARS) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 32 | LOCAL_MODULE_STEM := compatibility_matrix.legacy.xml |
| 33 | LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM) |
Yifan Hong | 94b7d2c | 2018-01-23 15:38:49 -0800 | [diff] [blame] | 34 | LOCAL_KERNEL_VERSIONS := 3.18.0 4.4.0 4.9.0 |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 35 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 36 | |
| 37 | include $(CLEAR_VARS) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 38 | LOCAL_MODULE_STEM := compatibility_matrix.1.xml |
| 39 | LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM) |
Yifan Hong | 94b7d2c | 2018-01-23 15:38:49 -0800 | [diff] [blame] | 40 | LOCAL_KERNEL_VERSIONS := 3.18.0 4.4.0 4.9.0 |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 41 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 42 | |
| 43 | include $(CLEAR_VARS) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 44 | LOCAL_MODULE_STEM := compatibility_matrix.2.xml |
| 45 | LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM) |
Yifan Hong | 94b7d2c | 2018-01-23 15:38:49 -0800 | [diff] [blame] | 46 | LOCAL_KERNEL_VERSIONS := 3.18.0 4.4.0 4.9.0 |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 47 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
| 48 | |
| 49 | # TODO(b/72409164): STOPSHIP: update kernel version requirements |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 50 | |
| 51 | include $(CLEAR_VARS) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 52 | LOCAL_MODULE_STEM := compatibility_matrix.current.xml |
| 53 | LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM) |
Yifan Hong | 94b7d2c | 2018-01-23 15:38:49 -0800 | [diff] [blame] | 54 | LOCAL_KERNEL_VERSIONS := 4.4.0 4.9.0 |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 55 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 56 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 57 | # Framework Compatibility Matrix (common to all FCM versions) |
| 58 | |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 59 | include $(CLEAR_VARS) |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 60 | LOCAL_MODULE_STEM := compatibility_matrix.empty.xml |
| 61 | LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM) |
| 62 | LOCAL_ADD_VBMETA_VERSION := true |
| 63 | LOCAL_ASSEMBLE_VINTF_ENV_VARS := \ |
Yifan Hong | b426af3 | 2018-02-02 12:47:48 -0800 | [diff] [blame] | 64 | POLICYVERS \ |
| 65 | PLATFORM_SEPOLICY_VERSION \ |
| 66 | PLATFORM_SEPOLICY_COMPAT_VERSIONS |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 67 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 68 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 69 | |
| 70 | # Framework Compatibility Matrix |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 71 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 72 | include $(CLEAR_VARS) |
| 73 | LOCAL_MODULE := framework_compatibility_matrix.xml |
| 74 | LOCAL_MODULE_STEM := compatibility_matrix.xml |
| 75 | LOCAL_MODULE_PATH := $(TARGET_OUT) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 76 | LOCAL_REQUIRED_MODULES := \ |
| 77 | framework_compatibility_matrix.legacy.xml \ |
| 78 | framework_compatibility_matrix.1.xml \ |
| 79 | framework_compatibility_matrix.2.xml \ |
| 80 | framework_compatibility_matrix.current.xml \ |
| 81 | framework_compatibility_matrix.empty.xml |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 82 | LOCAL_GENERATED_SOURCES := $(call module-installed-files,$(LOCAL_REQUIRED_MODULES)) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 83 | |
| 84 | ifdef BUILT_VENDOR_MANIFEST |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 85 | LOCAL_GEN_FILE_DEPENDENCIES += $(BUILT_VENDOR_MANIFEST) |
| 86 | LOCAL_ASSEMBLE_VINTF_FLAGS += -c "$(BUILT_VENDOR_MANIFEST)" |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 87 | endif |
| 88 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 89 | LOCAL_ASSEMBLE_VINTF_ENV_VARS := PRODUCT_ENFORCE_VINTF_MANIFEST |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 90 | |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 91 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
Yifan Hong | 2d8442c | 2017-12-13 15:01:19 -0800 | [diff] [blame] | 92 | BUILT_SYSTEM_COMPATIBILITY_MATRIX := $(LOCAL_BUILT_MODULE) |
Yifan Hong | 44c9b2e | 2018-01-23 14:34:41 -0800 | [diff] [blame] | 93 | |
| 94 | BUILD_FRAMEWORK_COMPATIBILITY_MATRIX := |