diff options
author | Adam Shih <adamshih@google.com> | 2022-10-05 14:29:38 +0800 |
---|---|---|
committer | Adam Shih <adamshih@google.com> | 2022-10-06 01:55:04 +0000 |
commit | 4a18a3091ebab4395aaec575ac5e3cee5bead51a (patch) | |
tree | ac48fc020b546bcca2053e523a639fe194461012 /dumpstate | |
parent | 9313ba007709342cbdae359fdfcae0b85002b613 (diff) | |
download | gs201-4a18a3091ebab4395aaec575ac5e3cee5bead51a.tar.gz |
update dumpstate build file from mk to bp
Bug: 240530709
Test: adb bugreport
Change-Id: I26776a30fe264b54d0d4f801e3210b554dfcc672
Diffstat (limited to 'dumpstate')
-rw-r--r-- | dumpstate/Android.bp | 28 | ||||
-rw-r--r-- | dumpstate/Android.mk | 44 | ||||
-rw-r--r-- | dumpstate/android.hardware.dumpstate-service.gs201.xml | 9 |
3 files changed, 37 insertions, 44 deletions
diff --git a/dumpstate/Android.bp b/dumpstate/Android.bp new file mode 100644 index 0000000..85cdc25 --- /dev/null +++ b/dumpstate/Android.bp @@ -0,0 +1,28 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_binary { + name: "android.hardware.dumpstate-service.gs201", + srcs: [ + "Dumpstate.cpp", + "service.cpp", + ], + init_rc: ["android.hardware.dumpstate@1.1-service.gs201.rc"], + vintf_fragments: ["android.hardware.dumpstate-service.gs201.xml"], + cflags: [ + "-Wall", + "-Werror", + ], + shared_libs: [ + "libbase", + "libbinder_ndk", + "libcutils", + "libdumpstateutil", + "liblog", + "libutils", + "android.hardware.dumpstate-V1-ndk", + ], + vendor: true, + relative_install_path: "hw", +} diff --git a/dumpstate/Android.mk b/dumpstate/Android.mk deleted file mode 100644 index 76202ce..0000000 --- a/dumpstate/Android.mk +++ /dev/null @@ -1,44 +0,0 @@ -# -# Copyright 2016 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) -include $(CLEAR_VARS) -LOCAL_MODULE := android.hardware.dumpstate-service.gs201 -LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS := notice -LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE -LOCAL_INIT_RC := android.hardware.dumpstate@1.1-service.gs201.rc -LOCAL_MODULE_RELATIVE_PATH := hw - -LOCAL_SRC_FILES := \ - Dumpstate.cpp \ - service.cpp - -LOCAL_SHARED_LIBRARIES := \ - libbase \ - libbinder_ndk \ - libcutils \ - libdumpstateutil \ - liblog \ - libutils \ - android.hardware.dumpstate-V1-ndk - -LOCAL_CFLAGS := -Werror -Wall - -LOCAL_MODULE_TAGS := optional -LOCAL_PROPRIETARY_MODULE := true - -include $(BUILD_EXECUTABLE) diff --git a/dumpstate/android.hardware.dumpstate-service.gs201.xml b/dumpstate/android.hardware.dumpstate-service.gs201.xml new file mode 100644 index 0000000..5e51b28 --- /dev/null +++ b/dumpstate/android.hardware.dumpstate-service.gs201.xml @@ -0,0 +1,9 @@ +<manifest version="1.0" type="device"> + <hal format="aidl"> + <name>android.hardware.dumpstate</name> + <interface> + <name>IDumpstateDevice</name> + <instance>default</instance> + </interface> + </hal> +</manifest> |