summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cherry2018-01-09 15:20:08 -0600
committerTom Cherry2018-01-09 15:21:01 -0600
commit6fb3dcaa5ffb3749140aaf92e8a98f804611cb06 (patch)
tree398fa28d48c4d9935af0d9eb53528fe6581f00e2 /toolbox
parentf008571a4f3abe766dff3615b2f15bdebf13f0b0 (diff)
downloadplatform-system-core-6fb3dcaa5ffb3749140aaf92e8a98f804611cb06.tar.gz
platform-system-core-6fb3dcaa5ffb3749140aaf92e8a98f804611cb06.tar.xz
platform-system-core-6fb3dcaa5ffb3749140aaf92e8a98f804611cb06.zip
Add toolbox to vendor
In preparation for adding getprop to toolbox Test: toolbox is present in vendor Change-Id: I8f2f7f8359902e84c14cc0c4adf349475d1d7aa7
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/Android.bp17
1 files changed, 15 insertions, 2 deletions
diff --git a/toolbox/Android.bp b/toolbox/Android.bp
index b5d16b80f..80a114823 100644
--- a/toolbox/Android.bp
+++ b/toolbox/Android.bp
@@ -13,6 +13,7 @@ cc_defaults {
13cc_library_static { 13cc_library_static {
14 name: "libtoolbox_dd", 14 name: "libtoolbox_dd",
15 defaults: ["toolbox_defaults"], 15 defaults: ["toolbox_defaults"],
16 vendor_available: true,
16 srcs: [ 17 srcs: [
17 "upstream-netbsd/bin/dd/args.c", 18 "upstream-netbsd/bin/dd/args.c",
18 "upstream-netbsd/bin/dd/conv.c", 19 "upstream-netbsd/bin/dd/conv.c",
@@ -46,8 +47,8 @@ genrule {
46 out: ["input.h-labels.h"], 47 out: ["input.h-labels.h"],
47} 48}
48 49
49cc_binary { 50cc_defaults {
50 name: "toolbox", 51 name: "toolbox_binary_defaults",
51 defaults: ["toolbox_defaults"], 52 defaults: ["toolbox_defaults"],
52 srcs: [ 53 srcs: [
53 "toolbox.c", 54 "toolbox.c",
@@ -70,6 +71,18 @@ cc_binary {
70 ], 71 ],
71} 72}
72 73
74cc_binary {
75 name: "toolbox",
76 defaults: ["toolbox_binary_defaults"],
77}
78
79cc_binary {
80 name: "toolbox_vendor",
81 stem: "toolbox",
82 vendor: true,
83 defaults: ["toolbox_binary_defaults"],
84}
85
73// We only want 'r' on userdebug and eng builds. 86// We only want 'r' on userdebug and eng builds.
74cc_binary { 87cc_binary {
75 name: "r", 88 name: "r",