summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorSteven Moreland2017-11-09 21:05:17 -0600
committerSteven Moreland2017-11-10 11:06:55 -0600
commita1169dd600091cc9a451b91e7b4573dc1d9049b3 (patch)
treee7b60403dc8cb464f2d9f9782c8bf06262e6bf74 /boot
parent771dff2a2d014df7118263d2c0a8cc8522cf480c (diff)
downloadplatform-hardware-interfaces-a1169dd600091cc9a451b91e7b4573dc1d9049b3.tar.gz
platform-hardware-interfaces-a1169dd600091cc9a451b91e7b4573dc1d9049b3.tar.xz
platform-hardware-interfaces-a1169dd600091cc9a451b91e7b4573dc1d9049b3.zip
Update makefiles for hidl_interface.
Bug: 35570956 Test: manual Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
Diffstat (limited to 'boot')
-rw-r--r--boot/1.0/Android.bp168
1 files changed, 11 insertions, 157 deletions
diff --git a/boot/1.0/Android.bp b/boot/1.0/Android.bp
index 98db2abc..85c3b613 100644
--- a/boot/1.0/Android.bp
+++ b/boot/1.0/Android.bp
@@ -1,168 +1,22 @@
1// This file is autogenerated by hidl-gen. Do not edit manually. 1// This file is autogenerated by hidl-gen -Landroidbp.
2 2
3filegroup { 3hidl_interface {
4 name: "android.hardware.boot@1.0_hal",
5 srcs: [
6 "types.hal",
7 "IBootControl.hal",
8 ],
9}
10
11genrule {
12 name: "android.hardware.boot@1.0_genc++",
13 tools: ["hidl-gen"],
14 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
15 srcs: [
16 ":android.hardware.boot@1.0_hal",
17 ],
18 out: [
19 "android/hardware/boot/1.0/types.cpp",
20 "android/hardware/boot/1.0/BootControlAll.cpp",
21 ],
22}
23
24genrule {
25 name: "android.hardware.boot@1.0_genc++_headers",
26 tools: ["hidl-gen"],
27 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
28 srcs: [
29 ":android.hardware.boot@1.0_hal",
30 ],
31 out: [
32 "android/hardware/boot/1.0/types.h",
33 "android/hardware/boot/1.0/hwtypes.h",
34 "android/hardware/boot/1.0/IBootControl.h",
35 "android/hardware/boot/1.0/IHwBootControl.h",
36 "android/hardware/boot/1.0/BnHwBootControl.h",
37 "android/hardware/boot/1.0/BpHwBootControl.h",
38 "android/hardware/boot/1.0/BsBootControl.h",
39 ],
40}
41
42cc_library {
43 name: "android.hardware.boot@1.0", 4 name: "android.hardware.boot@1.0",
44 defaults: ["hidl-module-defaults"], 5 root: "android.hardware",
45 generated_sources: ["android.hardware.boot@1.0_genc++"],
46 generated_headers: ["android.hardware.boot@1.0_genc++_headers"],
47 export_generated_headers: ["android.hardware.boot@1.0_genc++_headers"],
48 vendor_available: true,
49 vndk: { 6 vndk: {
50 enabled: true, 7 enabled: true,
51 }, 8 },
52 shared_libs: [
53 "libhidlbase",
54 "libhidltransport",
55 "libhwbinder",
56 "liblog",
57 "libutils",
58 "libcutils",
59 ],
60 export_shared_lib_headers: [
61 "libhidlbase",
62 "libhidltransport",
63 "libhwbinder",
64 "libutils",
65 ],
66}
67
68genrule {
69 name: "android.hardware.boot-V1.0-java_gen_java",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
72 srcs: [ 9 srcs: [
73 ":android.hardware.boot@1.0_hal", 10 "types.hal",
74 ], 11 "IBootControl.hal",
75 out: [
76 "android/hardware/boot/V1_0/BoolResult.java",
77 "android/hardware/boot/V1_0/CommandResult.java",
78 "android/hardware/boot/V1_0/IBootControl.java",
79 ],
80}
81
82java_library {
83 name: "android.hardware.boot-V1.0-java",
84 no_framework_libs: true,
85 defaults: ["hidl-java-module-defaults"],
86 srcs: [":android.hardware.boot-V1.0-java_gen_java"],
87 libs: [
88 "hwbinder",
89 "android.hidl.base-V1.0-java",
90 ]
91}
92
93// This package does not export any types. Not creating java constants export.
94
95
96genrule {
97 name: "android.hardware.boot@1.0-adapter-helper_genc++",
98 tools: ["hidl-gen"],
99 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
100 srcs: [
101 ":android.hardware.boot@1.0_hal",
102 ],
103 out: [
104 "android/hardware/boot/1.0/ABootControl.cpp",
105 ],
106}
107
108genrule {
109 name: "android.hardware.boot@1.0-adapter-helper_genc++_headers",
110 tools: ["hidl-gen"],
111 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
112 srcs: [
113 ":android.hardware.boot@1.0_hal",
114 ],
115 out: [
116 "android/hardware/boot/1.0/ABootControl.h",
117 ], 12 ],
118} 13 interfaces: [
119 14 "android.hidl.base@1.0",
120cc_library {
121 name: "android.hardware.boot@1.0-adapter-helper",
122 defaults: ["hidl-module-defaults"],
123 generated_sources: ["android.hardware.boot@1.0-adapter-helper_genc++"],
124 generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"],
125 export_generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"],
126 vendor_available: true,
127 shared_libs: [
128 "libhidlbase",
129 "libhidltransport",
130 "libhwbinder",
131 "liblog",
132 "libutils",
133 "libcutils",
134 "libhidladapter",
135 "android.hardware.boot@1.0",
136 "android.hidl.base@1.0-adapter-helper",
137 ], 15 ],
138 export_shared_lib_headers: [ 16 types: [
139 "libhidlbase", 17 "BoolResult",
140 "libhidltransport", 18 "CommandResult",
141 "libhwbinder",
142 "libutils",
143 "libhidladapter",
144 "android.hardware.boot@1.0",
145 "android.hidl.base@1.0-adapter-helper",
146 ], 19 ],
20 gen_java: true,
147} 21}
148 22
149genrule {
150 name: "android.hardware.boot@1.0-adapter_genc++",
151 tools: ["hidl-gen"],
152 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
153 out: ["main.cpp"]
154}
155
156cc_test {
157 name: "android.hardware.boot@1.0-adapter",
158 defaults: ["hidl-module-defaults"],
159 shared_libs: [
160 "libhidladapter",
161 "libhidlbase",
162 "libhidltransport",
163 "libutils",
164 "android.hardware.boot@1.0",
165 "android.hardware.boot@1.0-adapter-helper",
166 ],
167 generated_sources: ["android.hardware.boot@1.0-adapter_genc++"],
168}