Define a new remoteaccess HAL for test.
Bug: 261108682 Test: Locally build and run Change-Id: I40f97f4b10714096a32c5b14c8716b6c8e413419
This commit is contained in:
parent
5f0d4c663e
commit
1532afd33c
2 changed files with 25 additions and 4 deletions
|
@ -18,11 +18,9 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.automotive.remoteaccess@V1-default-service",
|
||||
cc_defaults {
|
||||
name: "remote-access-hal-defaults",
|
||||
vendor: true,
|
||||
vintf_fragments: ["remoteaccess-default-service.xml"],
|
||||
init_rc: ["remoteaccess-default-service.rc"],
|
||||
relative_install_path: "hw",
|
||||
srcs: ["src/RemoteAccessImpl.cpp"],
|
||||
whole_static_libs: [
|
||||
|
@ -41,10 +39,29 @@ cc_binary {
|
|||
],
|
||||
cflags: [
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.automotive.remoteaccess@V1-default-service",
|
||||
defaults: ["remote-access-hal-defaults"],
|
||||
vintf_fragments: ["remoteaccess-default-service.xml"],
|
||||
init_rc: ["remoteaccess-default-service.rc"],
|
||||
cflags: [
|
||||
"-DGRPC_SERVICE_ADDRESS=\"localhost:50051\"",
|
||||
],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.automotive.remoteaccess@V1-tcu-test-service",
|
||||
defaults: ["remote-access-hal-defaults"],
|
||||
vintf_fragments: ["remoteaccess-default-service.xml"],
|
||||
init_rc: ["remoteaccess-tcu-test-service.rc"],
|
||||
cflags: [
|
||||
"-DGRPC_SERVICE_ADDRESS=\"10.10.10.1:50051\"",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "RemoteAccessService",
|
||||
vendor_available: true,
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
service vendor.remoteaccess-default /vendor/bin/hw/android.hardware.automotive.remoteaccess@V1-tcu-test-service
|
||||
class hal
|
||||
user vehicle_network
|
||||
group system inet
|
Loading…
Reference in a new issue