aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2020-10-02 22:38:36 +0100
committerMartin Stjernholm <mast@google.com>2020-10-07 16:19:26 +0100
commit922f738474aeb225abf31892f5651c4814a8ed65 (patch)
tree4450142c68b092fb12b82ab64d58fd23b5529481
parent7ef808bcfab8caf6982638109313922bd01ebabe (diff)
downloadshflags-922f738474aeb225abf31892f5651c4814a8ed65.tar.gz
Use sh_binary_host for the shflags shell script.
It's more appropriate (cc_prebuilt_binary will now symlink the file in the source directory and require it to be executable). Test: rm -rf out/host/ out/soong/host && m shflags Check that out/host/linux-x86/bin/lib/shflags/shflags still is created. Test: m Change-Id: I9a0100261c90e6bce1723a69d73f5719d4296a43
-rw-r--r--Android.bp10
1 files changed, 3 insertions, 7 deletions
diff --git a/Android.bp b/Android.bp
index 60ee318..5b0b6f9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,12 +14,8 @@
// limitations under the License.
//
-cc_prebuilt_binary {
+sh_binary_host {
name: "shflags",
- device_supported: false,
- host_supported: true,
-
- srcs: ["shflags"],
-
- relative_install_path: "lib/shflags",
+ src: "shflags",
+ sub_dir: "lib/shflags",
}