aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Werner <philip.werner@haleytek.com>2022-06-21 10:10:30 +0200
committerDaniel Falk <daniel.falk@haleytek.com>2023-01-10 16:00:21 +0100
commit3059df9b6f67098d9cd158632339a1d928d85e97 (patch)
treedbf5595c0bad40a8d8a8434d73410a6d943fc77f
parent59afcc75e0bc393bb1fcc139a06f8a94f5e4faac (diff)
downloadtcpdump-3059df9b6f67098d9cd158632339a1d928d85e97.tar.gz
Add target for vendor partition
This allows tcpdump binary to be used by OEMs on vendor partition. The tool can be used in diagnostic/bugreport purposes to determine state of connectivity. Bug: 236735409 Change-Id: I38c8d8424e57fd9b65bf09455e63f02e37ea1134
-rw-r--r--Android.bp17
1 files changed, 15 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 5f0abb92..8d42578c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -16,8 +16,9 @@ license {
],
}
-cc_binary {
- name: "tcpdump",
+cc_defaults {
+ name: "tcpdump_defaults",
+
host_supported: false,
cflags: [
@@ -224,3 +225,15 @@ cc_binary {
"libpcap",
],
}
+
+cc_binary {
+ name: "tcpdump",
+ defaults: ["tcpdump_defaults"],
+}
+
+cc_binary {
+ name: "tcpdump_vendor",
+ stem: "tcpdump",
+ defaults: ["tcpdump_defaults"],
+ vendor: true,
+} \ No newline at end of file