summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorSteven Moreland2017-09-26 08:36:09 -0500
committerandroid-build-merger2017-09-26 08:36:09 -0500
commit7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00 (patch)
treed3eabaf3246368d9703b4fac65efba04590f33ff /boot
parent1573c2e8fd9ad6222f77d9089929a8598ac25d68 (diff)
parent97228c0b7de085b507b78a1bc16e15725de48e4e (diff)
downloadplatform-hardware-interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.tar.gz
platform-hardware-interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.tar.xz
platform-hardware-interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.zip
Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e am: b94d0c7290
am: 97228c0b7d Change-Id: Ic4b459b7c1a4325453945b0b00db8f44e4e77c26
Diffstat (limited to 'boot')
-rw-r--r--boot/1.0/Android.bp73
1 files changed, 73 insertions, 0 deletions
diff --git a/boot/1.0/Android.bp b/boot/1.0/Android.bp
index 4e4efa36..2f4dcc35 100644
--- a/boot/1.0/Android.bp
+++ b/boot/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.boot@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
72 srcs: [
73 ":android.hardware.boot@1.0_hal",
74 ],
75 out: [
76 "android/hardware/boot/1.0/ABootControl.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.boot@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
84 srcs: [
85 ":android.hardware.boot@1.0_hal",
86 ],
87 out: [
88 "android/hardware/boot/1.0/ABootControl.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.boot@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.boot@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.boot@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.boot@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.boot@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.boot@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.boot@1.0",
136 "android.hardware.boot@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.boot@1.0-adapter_genc++"],
139}