diff options
author | Yifan Hong <elsk@google.com> | 2018-02-06 02:29:31 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-06 02:29:31 +0000 |
commit | d5933c76f869fb3d1fb31d787aba137847265f16 (patch) | |
tree | 4f5c20ca9d85a651cc505fafa4523dc11024c73b /vintfdata | |
parent | 012ae140fc9168b1e1ceefc5c7100d789c202480 (diff) | |
parent | ced6183e2837458ac5bcee0de1eb6111c4451358 (diff) | |
download | libhidl-d5933c76f869fb3d1fb31d787aba137847265f16.tar.gz |
Move system manifest / device matrix build rules. am: ffdad0f74c am: 882dec2ef5
am: ced6183e28
Change-Id: Ib6e4eaf0409568d09c364dfa47f7e295b53ea2ea
Diffstat (limited to 'vintfdata')
-rw-r--r-- | vintfdata/Android.mk | 84 | ||||
-rw-r--r-- | vintfdata/manifest.xml | 116 |
2 files changed, 200 insertions, 0 deletions
diff --git a/vintfdata/Android.mk b/vintfdata/Android.mk new file mode 100644 index 0000000..22201fa --- /dev/null +++ b/vintfdata/Android.mk @@ -0,0 +1,84 @@ +# +# Copyright (C) 2018 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +LOCAL_PATH := $(call my-dir) + +FRAMEWORK_MANIFEST_INPUT_FILES := $(LOCAL_PATH)/manifest.xml +ifdef DEVICE_FRAMEWORK_MANIFEST_FILE + FRAMEWORK_MANIFEST_INPUT_FILES += $(DEVICE_FRAMEWORK_MANIFEST_FILE) +endif + +# VNDK Version in device compatibility matrix and framework manifest +ifeq ($(BOARD_VNDK_VERSION),current) +VINTF_VNDK_VERSION := $(PLATFORM_VNDK_VERSION) +else +VINTF_VNDK_VERSION := $(BOARD_VNDK_VERSION) +endif + +# Device Compatibility Matrix +ifdef DEVICE_MATRIX_FILE +include $(CLEAR_VARS) +LOCAL_MODULE := device_compatibility_matrix.xml +LOCAL_MODULE_STEM := compatibility_matrix.xml +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/vintf + +GEN := $(local-generated-sources-dir)/compatibility_matrix.xml + +$(GEN): PRIVATE_VINTF_VNDK_VERSION := $(VINTF_VNDK_VERSION) +$(GEN): $(DEVICE_MATRIX_FILE) $(HOST_OUT_EXECUTABLES)/assemble_vintf + REQUIRED_VNDK_VERSION=$(PRIVATE_VINTF_VNDK_VERSION) \ + BOARD_SYSTEMSDK_VERSIONS="$(BOARD_SYSTEMSDK_VERSIONS)" \ + $(HOST_OUT_EXECUTABLES)/assemble_vintf -i $< -o $@ + +LOCAL_PREBUILT_MODULE_FILE := $(GEN) +include $(BUILD_PREBUILT) +BUILT_VENDOR_MATRIX := $(LOCAL_BUILT_MODULE) +endif + +# Framework Manifest +include $(CLEAR_VARS) +LOCAL_MODULE := framework_manifest.xml +LOCAL_MODULE_STEM := manifest.xml +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/vintf + +GEN := $(local-generated-sources-dir)/manifest.xml + +$(GEN): PRIVATE_FLAGS := + +ifeq ($(PRODUCT_ENFORCE_VINTF_MANIFEST),true) +ifdef BUILT_VENDOR_MATRIX +$(GEN): $(BUILT_VENDOR_MATRIX) +$(GEN): PRIVATE_FLAGS += -c "$(BUILT_VENDOR_MATRIX)" +endif +endif + +$(GEN): PRIVATE_VINTF_VNDK_VERSION := $(VINTF_VNDK_VERSION) +$(GEN): PRIVATE_FRAMEWORK_MANIFEST_INPUT_FILES := $(FRAMEWORK_MANIFEST_INPUT_FILES) +$(GEN): $(FRAMEWORK_MANIFEST_INPUT_FILES) $(HOST_OUT_EXECUTABLES)/assemble_vintf + PROVIDED_VNDK_VERSIONS="$(PRIVATE_VINTF_VNDK_VERSION) $(PRODUCT_EXTRA_VNDK_VERSIONS)" \ + PLATFORM_SYSTEMSDK_VERSIONS="$(PLATFORM_SYSTEMSDK_VERSIONS)" \ + $(HOST_OUT_EXECUTABLES)/assemble_vintf \ + -i $(call normalize-path-list,$(PRIVATE_FRAMEWORK_MANIFEST_INPUT_FILES)) \ + -o $@ $(PRIVATE_FLAGS) + +LOCAL_PREBUILT_MODULE_FILE := $(GEN) +include $(BUILD_PREBUILT) +BUILT_SYSTEM_MANIFEST := $(LOCAL_BUILT_MODULE) + +VINTF_VNDK_VERSION := +FRAMEWORK_MANIFEST_INPUT_FILES := diff --git a/vintfdata/manifest.xml b/vintfdata/manifest.xml new file mode 100644 index 0000000..417d7b1 --- /dev/null +++ b/vintfdata/manifest.xml @@ -0,0 +1,116 @@ +<manifest version="1.0" type="framework"> + <hal> + <name>android.hidl.manager</name> + <transport>hwbinder</transport> + <version>1.1</version> + <interface> + <name>IServiceManager</name> + <instance>default</instance> + </interface> + </hal> + <hal> + <name>android.hidl.allocator</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>IAllocator</name> + <instance>ashmem</instance> + </interface> + </hal> + <hal> + <name>android.hidl.memory</name> + <transport arch="32+64">passthrough</transport> + <version>1.0</version> + <interface> + <name>IMapper</name> + <instance>ashmem</instance> + </interface> + </hal> + <hal> + <name>android.hidl.token</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>ITokenManager</name> + <instance>default</instance> + </interface> + </hal> + <hal> + <name>android.frameworks.displayservice</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>IDisplayService</name> + <instance>default</instance> + </interface> + </hal> + <hal> + <name>android.frameworks.schedulerservice</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>ISchedulingPolicyService</name> + <instance>default</instance> + </interface> + </hal> + <hal> + <name>android.frameworks.sensorservice</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>ISensorManager</name> + <instance>default</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.system.net.netd</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>INetd</name> + <instance>default</instance> + </interface> + </hal> + <hal> + <name>android.system.wifi.keystore</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>IKeystore</name> + <instance>default</instance> + </interface> + </hal> + <hal> + <name>android.hardware.graphics.composer</name> + <transport>hwbinder</transport> + <version>2.1</version> + <interface> + <name>IComposer</name> + <instance>vr</instance> + </interface> + </hal> + <hal> + <name>android.hardware.health</name> + <transport>hwbinder</transport> + <version>2.0</version> + <interface> + <name>IHealth</name> + <!-- The backup instance provided by healthd. --> + <instance>backup</instance> + </interface> + </hal> + <hal format="native"> + <name>netutils-wrapper</name> + <!-- + netutils-wrapper versions must be x.0. + netutils-wrapper next version has less functionalities than + previous versions, so unlike a HAL, netutils-wrapper are not + backwards compatible. Hence the major version must be bumped for + each update. + If a minor version were bumped instead (say, <version>1.1</version>), + it would be incorrectly considered compatible with version 1.0 in + device compatibility matrix. + --> + <version>1.0</version> + </hal> +</manifest> |