summaryrefslogtreecommitdiffstats
path: root/radio/1.0/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-11-04 15:02:42 -0700
committerColin Cross <ccross@android.com>2016-11-07 10:54:59 -0800
commit8f084e00d6cac7bd0b9f32bb391908114db1e2db (patch)
treeaaf60cde64edfe96ff7688d1d74c405fc852c193 /radio/1.0/Android.bp
parent37c96a54e5f5f5a1a613dfd2e3b72fb02c6969d1 (diff)
downloadplatform_hardware_interfaces-8f084e00d6cac7bd0b9f32bb391908114db1e2db.tar.gz
platform_hardware_interfaces-8f084e00d6cac7bd0b9f32bb391908114db1e2db.tar.bz2
platform_hardware_interfaces-8f084e00d6cac7bd0b9f32bb391908114db1e2db.zip
Support genrules with multiple tools
To allow genrules with more than one tool, rename the tool property to tools and make it an array, replace $tool with $(location <label>), and use $() for other variables for consistency. Bug: 31948427 Test: compare build.ninja Change-Id: I3d714f70a2af0dc60faeee10e09b6ed166601f1d (cherry picked from commit b785f5b82ef2efa62ca9d7288cfff64c178080b0)
Diffstat (limited to 'radio/1.0/Android.bp')
-rw-r--r--radio/1.0/Android.bp8
1 files changed, 4 insertions, 4 deletions
diff --git a/radio/1.0/Android.bp b/radio/1.0/Android.bp
index 592754999e..0f89421337 100644
--- a/radio/1.0/Android.bp
+++ b/radio/1.0/Android.bp
@@ -2,8 +2,8 @@
genrule {
name: "android.hardware.radio@1.0_genc++",
- tool: "hidl-gen",
- cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0",
srcs: [
"types.hal",
"IRadio.hal",
@@ -24,8 +24,8 @@ genrule {
genrule {
name: "android.hardware.radio@1.0_genc++_headers",
- tool: "hidl-gen",
- cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0",
srcs: [
"types.hal",
"IRadio.hal",