aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2018-11-28 09:10:44 -0800
committerBo Hu <bohu@google.com>2018-11-28 17:25:28 +0000
commit7d3c00dce57f670a1cdcc53d9a0c61a62d5cb1fa (patch)
tree901b1ec0656271df4ed5476eadb078a71aef93fa
parent947a0d91093cae3045af57d419f1090eb0319afc (diff)
downloadiw-7d3c00dce57f670a1cdcc53d9a0c61a62d5cb1fa.tar.gz
iw: make it available in vendor/bin
BUG: 119665526 Test: lunch sdk_gphone_x86-user make -j emulator wifi should work Change-Id: I217cd89c420c04c5f26d66d15295a37d97c4f475
-rw-r--r--Android.bp17
1 files changed, 15 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index c3b4f26..34606b9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -6,8 +6,8 @@ genrule {
out: ["version.c"],
}
-cc_binary {
- name: "iw",
+cc_defaults {
+ name: "iw_common",
srcs: [
"iw.c",
@@ -60,3 +60,16 @@ cc_binary {
ldflags: ["-Wl,--no-gc-sections"],
static_libs: ["libnl"],
}
+
+cc_binary {
+ name: "iw",
+
+ defaults: ["iw_common"],
+}
+
+cc_binary {
+ name: "iw_vendor",
+ stem: "iw",
+ vendor: true,
+ defaults: ["iw_common"],
+}