summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorSteven Moreland2017-09-22 16:10:47 -0500
committerSteven Moreland2017-09-25 13:35:56 -0500
commit26a0bb27627c43b599a7807ecf5ec594a525660a (patch)
treede18c34fd98b50e3172080fe7a40e52282d8da4c /boot
parent7728f0ce5c7f7da067a446531b80d199bcd5c849 (diff)
downloadplatform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.gz
platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.xz
platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.zip
Update makefiles for hidl adapter.
Bug: 37518178 Test: manual Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
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}