From 6fb3dcaa5ffb3749140aaf92e8a98f804611cb06 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Tue, 9 Jan 2018 13:20:08 -0800 Subject: [PATCH] Add toolbox to vendor In preparation for adding getprop to toolbox Test: toolbox is present in vendor Change-Id: I8f2f7f8359902e84c14cc0c4adf349475d1d7aa7 --- shell_and_utilities/Android.bp | 1 + toolbox/Android.bp | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/shell_and_utilities/Android.bp b/shell_and_utilities/Android.bp index 4203db494..3ccb92f1b 100644 --- a/shell_and_utilities/Android.bp +++ b/shell_and_utilities/Android.bp @@ -12,6 +12,7 @@ phony { "sh", "sh_vendor", "toolbox", + "toolbox_vendor", "toybox", "toybox_vendor", ], 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 { cc_library_static { name: "libtoolbox_dd", defaults: ["toolbox_defaults"], + vendor_available: true, srcs: [ "upstream-netbsd/bin/dd/args.c", "upstream-netbsd/bin/dd/conv.c", @@ -46,8 +47,8 @@ genrule { out: ["input.h-labels.h"], } -cc_binary { - name: "toolbox", +cc_defaults { + name: "toolbox_binary_defaults", defaults: ["toolbox_defaults"], srcs: [ "toolbox.c", @@ -70,6 +71,18 @@ cc_binary { ], } +cc_binary { + name: "toolbox", + defaults: ["toolbox_binary_defaults"], +} + +cc_binary { + name: "toolbox_vendor", + stem: "toolbox", + vendor: true, + defaults: ["toolbox_binary_defaults"], +} + // We only want 'r' on userdebug and eng builds. cc_binary { name: "r",