netbpfload: introduce 'mainline_tethering_platform_components' phony/group target
this is to provide a convenient target for netd to depend on
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I5ceda32dbcbe4c0d1b420cc79880f9fe226ac458
diff --git a/netbpfload/Android.bp b/netbpfload/Android.bp
index b71890e..f397b37 100644
--- a/netbpfload/Android.bp
+++ b/netbpfload/Android.bp
@@ -18,6 +18,22 @@
default_team: "trendy_team_fwk_core_networking",
}
+install_symlink {
+ name: "platform_ethtool_symlink",
+ symlink_target: "/apex/com.android.tethering/bin/ethtool",
+ // installed_location is relative to /system because that's the default partition for soong
+ // modules, unless we add something like `system_ext_specific: true` like in hwservicemanager.
+ installed_location: "bin/ethtool",
+}
+
+phony {
+ name: "mainline_tethering_platform_components",
+ required: [
+ "netbpfload",
+ "platform_ethtool_symlink",
+ ],
+}
+
cc_binary {
name: "netbpfload",