update dumpstate build file from mk to bp

Bug: 240530709
Test: adb bugreport
Change-Id: I26776a30fe264b54d0d4f801e3210b554dfcc672
This commit is contained in:
Adam Shih 2022-10-05 14:29:38 +08:00
parent 9313ba0077
commit 4a18a3091e
4 changed files with 37 additions and 51 deletions

28
dumpstate/Android.bp Normal file
View file

@ -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",
}

View file

@ -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)

View file

@ -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>

View file

@ -35,13 +35,6 @@
<instance>default</instance>
</interface>
</hal>
<hal format="aidl">
<name>android.hardware.dumpstate</name>
<interface>
<name>IDumpstateDevice</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.boot</name>
<transport>hwbinder</transport>