Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2018 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 | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 19 | # DEVICE_FRAMEWORK_MANIFEST_FILE is a device-specific framework manifest file |
| 20 | # that installed to the system image. HALs entries should be written to |
| 21 | # DEVICE_FRAMEWORK_MANIFEST_FILE or PRODUCT_MANIFEST_FILES depend on the path of |
| 22 | # the module. It is recommended that such device-specific modules to be |
| 23 | # installed on product partition. |
| 24 | |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 25 | SYSTEM_MANIFEST_INPUT_FILES := $(LOCAL_PATH)/manifest.xml |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 26 | ifdef DEVICE_FRAMEWORK_MANIFEST_FILE |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 27 | SYSTEM_MANIFEST_INPUT_FILES += $(DEVICE_FRAMEWORK_MANIFEST_FILE) |
| 28 | endif |
| 29 | |
| 30 | SYSTEM_EXT_MANIFEST_INPUT_FILES := $(LOCAL_PATH)/system_ext_manifest.default.xml |
| 31 | ifdef SYSTEM_EXT_MANIFEST_FILES |
| 32 | SYSTEM_EXT_MANIFEST_INPUT_FILES += $(SYSTEM_EXT_MANIFEST_FILES) |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 33 | endif |
| 34 | |
| 35 | # VNDK Version in device compatibility matrix and framework manifest |
| 36 | ifeq ($(BOARD_VNDK_VERSION),current) |
| 37 | VINTF_VNDK_VERSION := $(PLATFORM_VNDK_VERSION) |
| 38 | else |
| 39 | VINTF_VNDK_VERSION := $(BOARD_VNDK_VERSION) |
| 40 | endif |
| 41 | |
| 42 | # Device Compatibility Matrix |
| 43 | ifdef DEVICE_MATRIX_FILE |
Yifan Hong | 8731aa1 | 2018-02-01 15:19:23 -0800 | [diff] [blame] | 44 | DEVICE_MATRIX_INPUT_FILE := $(DEVICE_MATRIX_FILE) |
| 45 | else |
| 46 | DEVICE_MATRIX_INPUT_FILE := $(LOCAL_PATH)/device_compatibility_matrix.default.xml |
| 47 | endif |
| 48 | |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 49 | include $(CLEAR_VARS) |
Yifan Hong | 5b973e7 | 2020-01-14 13:22:55 -0800 | [diff] [blame] | 50 | LOCAL_MODULE := vendor_compatibility_matrix.xml |
Bob Badour | ad2415c | 2021-02-12 17:33:30 -0800 | [diff] [blame] | 51 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 |
| 52 | LOCAL_LICENSE_CONDITIONS := notice |
| 53 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 54 | LOCAL_MODULE_STEM := compatibility_matrix.xml |
| 55 | LOCAL_MODULE_CLASS := ETC |
| 56 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/vintf |
| 57 | |
| 58 | GEN := $(local-generated-sources-dir)/compatibility_matrix.xml |
| 59 | |
| 60 | $(GEN): PRIVATE_VINTF_VNDK_VERSION := $(VINTF_VNDK_VERSION) |
Yifan Hong | f2211cd | 2019-04-22 14:07:23 -0700 | [diff] [blame] | 61 | $(GEN): PRIVATE_DEVICE_MATRIX_INPUT_FILE := $(DEVICE_MATRIX_INPUT_FILE) |
Yifan Hong | 8731aa1 | 2018-02-01 15:19:23 -0800 | [diff] [blame] | 62 | $(GEN): $(DEVICE_MATRIX_INPUT_FILE) $(HOST_OUT_EXECUTABLES)/assemble_vintf |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 63 | REQUIRED_VNDK_VERSION=$(PRIVATE_VINTF_VNDK_VERSION) \ |
| 64 | BOARD_SYSTEMSDK_VERSIONS="$(BOARD_SYSTEMSDK_VERSIONS)" \ |
Yifan Hong | f2211cd | 2019-04-22 14:07:23 -0700 | [diff] [blame] | 65 | $(HOST_OUT_EXECUTABLES)/assemble_vintf \ |
| 66 | -i $(call normalize-path-list,$(PRIVATE_DEVICE_MATRIX_INPUT_FILE)) \ |
| 67 | -o $@ |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 68 | |
| 69 | LOCAL_PREBUILT_MODULE_FILE := $(GEN) |
| 70 | include $(BUILD_PREBUILT) |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 71 | |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 72 | # System Manifest |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 73 | include $(CLEAR_VARS) |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 74 | LOCAL_MODULE := system_manifest.xml |
Bob Badour | ad2415c | 2021-02-12 17:33:30 -0800 | [diff] [blame] | 75 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 |
| 76 | LOCAL_LICENSE_CONDITIONS := notice |
| 77 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 78 | LOCAL_MODULE_STEM := manifest.xml |
| 79 | LOCAL_MODULE_CLASS := ETC |
| 80 | LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/vintf |
| 81 | |
| 82 | GEN := $(local-generated-sources-dir)/manifest.xml |
| 83 | |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 84 | $(GEN): PRIVATE_SYSTEM_MANIFEST_INPUT_FILES := $(SYSTEM_MANIFEST_INPUT_FILES) |
| 85 | $(GEN): $(SYSTEM_MANIFEST_INPUT_FILES) $(HOST_OUT_EXECUTABLES)/assemble_vintf |
Isaac Chen | eef35f9 | 2020-06-01 15:00:23 +0800 | [diff] [blame] | 86 | PLATFORM_SYSTEMSDK_VERSIONS="$(PLATFORM_SYSTEMSDK_VERSIONS)" \ |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 87 | $(HOST_OUT_EXECUTABLES)/assemble_vintf \ |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 88 | -i $(call normalize-path-list,$(PRIVATE_SYSTEM_MANIFEST_INPUT_FILES)) \ |
Steven Moreland | 7ecc634 | 2018-04-30 16:23:20 -0700 | [diff] [blame] | 89 | -o $@ |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 90 | |
| 91 | LOCAL_PREBUILT_MODULE_FILE := $(GEN) |
| 92 | include $(BUILD_PREBUILT) |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 93 | |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 94 | # Product Manifest |
| 95 | ifneq ($(PRODUCT_MANIFEST_FILES),) |
| 96 | include $(CLEAR_VARS) |
| 97 | LOCAL_MODULE := product_manifest.xml |
Bob Badour | ad2415c | 2021-02-12 17:33:30 -0800 | [diff] [blame] | 98 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 |
| 99 | LOCAL_LICENSE_CONDITIONS := notice |
| 100 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 101 | LOCAL_MODULE_STEM := manifest.xml |
| 102 | LOCAL_MODULE_CLASS := ETC |
Yifan Hong | 64c7929 | 2020-03-20 12:28:07 -0700 | [diff] [blame] | 103 | LOCAL_PRODUCT_MODULE := true |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 104 | LOCAL_MODULE_RELATIVE_PATH := vintf |
| 105 | GEN := $(local-generated-sources-dir)/manifest.xml |
| 106 | $(GEN): PRIVATE_PRODUCT_MANIFEST_FILES := $(PRODUCT_MANIFEST_FILES) |
| 107 | $(GEN): $(PRODUCT_MANIFEST_FILES) $(HOST_OUT_EXECUTABLES)/assemble_vintf |
| 108 | $(HOST_OUT_EXECUTABLES)/assemble_vintf \ |
| 109 | -i $(call normalize-path-list,$(PRIVATE_PRODUCT_MANIFEST_FILES)) \ |
| 110 | -o $@ |
| 111 | |
| 112 | LOCAL_PREBUILT_MODULE_FILE := $(GEN) |
| 113 | include $(BUILD_PREBUILT) |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 114 | endif |
| 115 | |
Yifan Hong | 9de44e2 | 2020-03-20 12:22:38 -0700 | [diff] [blame] | 116 | # System_ext Manifest |
Yifan Hong | 9de44e2 | 2020-03-20 12:22:38 -0700 | [diff] [blame] | 117 | include $(CLEAR_VARS) |
| 118 | LOCAL_MODULE := system_ext_manifest.xml |
Bob Badour | ad2415c | 2021-02-12 17:33:30 -0800 | [diff] [blame] | 119 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 |
| 120 | LOCAL_LICENSE_CONDITIONS := notice |
| 121 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE |
Yifan Hong | 9de44e2 | 2020-03-20 12:22:38 -0700 | [diff] [blame] | 122 | LOCAL_MODULE_STEM := manifest.xml |
| 123 | LOCAL_MODULE_CLASS := ETC |
| 124 | LOCAL_SYSTEM_EXT_MODULE := true |
| 125 | LOCAL_MODULE_RELATIVE_PATH := vintf |
| 126 | GEN := $(local-generated-sources-dir)/manifest.xml |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 127 | $(GEN): PRIVATE_SYSTEM_EXT_MANIFEST_FILES := $(SYSTEM_EXT_MANIFEST_INPUT_FILES) |
Yifan Hong | bb842a6 | 2020-03-20 12:50:57 -0700 | [diff] [blame] | 128 | $(GEN): PRIVATE_VINTF_VNDK_VERSION := $(VINTF_VNDK_VERSION) |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 129 | $(GEN): $(SYSTEM_EXT_MANIFEST_INPUT_FILES) $(HOST_OUT_EXECUTABLES)/assemble_vintf |
Yifan Hong | bb842a6 | 2020-03-20 12:50:57 -0700 | [diff] [blame] | 130 | PROVIDED_VNDK_VERSIONS="$(PRIVATE_VINTF_VNDK_VERSION) $(PRODUCT_EXTRA_VNDK_VERSIONS)" \ |
Yifan Hong | 9de44e2 | 2020-03-20 12:22:38 -0700 | [diff] [blame] | 131 | $(HOST_OUT_EXECUTABLES)/assemble_vintf \ |
| 132 | -i $(call normalize-path-list,$(PRIVATE_SYSTEM_EXT_MANIFEST_FILES)) \ |
| 133 | -o $@ |
| 134 | |
| 135 | LOCAL_PREBUILT_MODULE_FILE := $(GEN) |
| 136 | include $(BUILD_PREBUILT) |
Yifan Hong | 9de44e2 | 2020-03-20 12:22:38 -0700 | [diff] [blame] | 137 | |
Yifan Hong | ffdad0f | 2018-02-01 14:50:10 -0800 | [diff] [blame] | 138 | VINTF_VNDK_VERSION := |
Yifan Hong | 2ffda9e | 2020-03-20 12:46:25 -0700 | [diff] [blame] | 139 | SYSTEM_MANIFEST_INPUT_FILES := |
| 140 | SYSTEM_EXT_MANIFEST_INPUT_FILES := |
Yifan Hong | f2211cd | 2019-04-22 14:07:23 -0700 | [diff] [blame] | 141 | DEVICE_MATRIX_INPUT_FILE := |
Yifan Hong | de7a989 | 2019-04-23 16:43:02 -0700 | [diff] [blame] | 142 | PRODUCT_MANIFEST_INPUT_FILES := |
Yifan Hong | c3d3a5e | 2020-10-14 14:07:09 -0700 | [diff] [blame] | 143 | |
| 144 | VINTF_FRAMEWORK_MANIFEST_FROZEN_DIR := $(LOCAL_PATH)/frozen |