From ca38c79622ab89f6a4aea6014700d181cd565dac Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 20 Jun 2018 17:48:37 +0100 Subject: [PATCH] Split shell_and_utilities into partition parts. This allows a product to selectively include binaries for the partitions relevant to it. For example, mainline will only include the system copies. Bug: 80410283 Test: make Change-Id: I1d1d62a3c8afff19cd45388adc323587f5043243 --- shell_and_utilities/Android.bp | 37 ++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/shell_and_utilities/Android.bp b/shell_and_utilities/Android.bp index dfb88f74d..7834dd50c 100644 --- a/shell_and_utilities/Android.bp +++ b/shell_and_utilities/Android.bp @@ -1,25 +1,46 @@ phony { name: "shell_and_utilities", + required: [ + "shell_and_utilities_system", + "shell_and_utilities_recovery", + "shell_and_utilities_vendor", + ], +} + +phony { + name: "shell_and_utilities_system", required: [ "awk", - "awk_vendor", "bzip2", "grep", - "grep_vendor", "logwrapper", - "logwrapper_vendor", "mkshrc", - "mkshrc_vendor", "newfs_msdos", "reboot", "sh", - "sh.recovery", - "sh_vendor", "toolbox", - "toolbox.recovery", - "toolbox_vendor", "toybox", + ], +} + +phony { + name: "shell_and_utilities_recovery", + required: [ + "sh.recovery", + "toolbox.recovery", "toybox.recovery", + ], +} + +phony { + name: "shell_and_utilities_vendor", + required: [ + "awk_vendor", + "grep_vendor", + "logwrapper_vendor", + "mkshrc_vendor", + "sh_vendor", + "toolbox_vendor", "toybox_vendor", ], }