Merge "Drop references to CAN HAL from libnetdevice and libnl++" into main am: 2764f6223c

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3349682

Change-Id: I2884f6f4e5aecc23143fa3fc8524242f19b00a7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-11-15 00:41:27 +00:00
committed by Automerger Merge Worker
2 changed files with 33 additions and 4 deletions

View File

@@ -23,10 +23,19 @@ package {
default_applicable_licenses: ["hardware_interfaces_license"],
}
cc_library_static {
name: "android.hardware.automotive.can@libnetdevice",
defaults: ["android.hardware.automotive.can@defaults"],
cc_defaults {
name: "libnetdevice-common",
vendor_available: true,
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
],
shared_libs: [
"libbase",
"libutils",
],
srcs: [
"can.cpp",
"common.cpp",
@@ -40,3 +49,14 @@ cc_library_static {
"libnl++",
],
}
// TODO: migrate to "libnetdevice" and remove
cc_library_static {
name: "android.hardware.automotive.can@libnetdevice",
defaults: ["libnetdevice-common"],
}
cc_library_static {
name: "libnetdevice",
defaults: ["libnetdevice-common"],
}

View File

@@ -25,8 +25,17 @@ package {
cc_library_static {
name: "libnl++",
defaults: ["android.hardware.automotive.can@defaults"],
vendor_available: true,
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
],
shared_libs: [
"libbase",
"libutils",
],
srcs: [
"protocols/common/Empty.cpp",
"protocols/common/Error.cpp",