libbpf_android: Add native_bridge_supported to allow usage in libmeminfo
libmeminfo needs to use BPF to read GPU usage reported by kernel
drivers, therefore a new dependency between libmeminfo and
libbpf_android is added. After this addition, native_bridge_supported
is required to successfully build cuttlefish targets.
Bug: 171261987
Test: build libmeminfo accessing BPF map
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I12e0613b13fb1206e204b5e85b4ea9a4d33e0cc9
diff --git a/libbpf_android/Android.bp b/libbpf_android/Android.bp
index cd2342e..507ca18 100644
--- a/libbpf_android/Android.bp
+++ b/libbpf_android/Android.bp
@@ -18,6 +18,7 @@
name: "libbpf_android_headers",
vendor_available: false,
host_supported: false,
+ native_bridge_supported: true,
export_include_dirs: ["include"],
target: {
linux_bionic: {
@@ -30,6 +31,7 @@
name: "libbpf_android",
vendor_available: false,
host_supported: false,
+ native_bridge_supported: true,
target: {
android: {
srcs: [