blob: 160a2200616c04838a7fad5b032acaa5ec29c3ed [file] [log] [blame]
David Andersonee84d742019-01-07 18:10:29 -08001//
David Andersonc053b3b2019-01-08 18:22:07 -08002// Copyright (C) 2019 The Android Open Source Project
David Andersonee84d742019-01-07 18:10:29 -08003//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_binary {
18 name: "gsi_tool",
19 shared_libs: [
David Andersonc053b3b2019-01-08 18:22:07 -080020 "gsi_aidl_interface-cpp",
David Andersonee84d742019-01-07 18:10:29 -080021 "libbase",
David Anderson83fdeca2019-09-09 17:56:22 -070022 "libbinder",
David Andersonb33f2b12019-01-22 14:14:10 -080023 "libcutils",
David Andersonc053b3b2019-01-08 18:22:07 -080024 "libgsi",
David Andersonee84d742019-01-07 18:10:29 -080025 "liblog",
David Andersonee84d742019-01-07 18:10:29 -080026 "libutils",
27 ],
David Anderson83fdeca2019-09-09 17:56:22 -070028 static_libs: [
29 "libgsid",
30 ],
David Andersonee84d742019-01-07 18:10:29 -080031 srcs: [
32 "gsi_tool.cpp",
33 ],
34}
35
36cc_library {
37 name: "libgsi",
38 recovery_available: true,
Howard Chen9e20bdf2019-01-09 17:54:26 +080039 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080040 srcs: [
41 "libgsi.cpp",
42 ],
43 shared_libs: [
44 "libbase",
45 ],
46 export_include_dirs: ["include"],
47}
48
David Anderson83fdeca2019-09-09 17:56:22 -070049cc_library_static {
50 name: "libgsid",
51 srcs: [
52 "libgsid.cpp",
53 ],
54 shared_libs: [
55 "gsi_aidl_interface-cpp",
56 "libbase",
57 "libbinder",
58 "libcutils",
59 "liblog",
60 "libservices",
61 "libutils",
62 ],
63 static_libs: [
64 "libgsi",
65 ],
66 export_include_dirs: ["include"],
67}
68
David Andersonee84d742019-01-07 18:10:29 -080069cc_library_headers {
70 name: "libgsi_headers",
Howard Chen9e20bdf2019-01-09 17:54:26 +080071 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080072 recovery_available: true,
73 vendor_available: true,
74 export_include_dirs: ["include"],
75}
David Andersonc053b3b2019-01-08 18:22:07 -080076
77cc_binary {
78 name: "gsid",
79 srcs: [
80 "daemon.cpp",
81 "gsi_service.cpp",
Howard Chen4663de62019-11-05 20:46:20 +080082 "partition_installer.cpp",
David Andersonc053b3b2019-01-08 18:22:07 -080083 ],
84 required: [
85 "mke2fs",
86 ],
87 init_rc: [
88 "gsid.rc",
89 ],
90 shared_libs: [
David Andersonc053b3b2019-01-08 18:22:07 -080091 "libbase",
92 "libbinder",
David Andersond614eca2019-09-09 17:57:06 -070093 "libcrypto",
David Andersonc053b3b2019-01-08 18:22:07 -080094 "liblog",
David Andersonc053b3b2019-01-08 18:22:07 -080095 ],
96 static_libs: [
David Andersond614eca2019-09-09 17:57:06 -070097 "gsi_aidl_interface-cpp",
Yo Chiang53bed1c2020-01-01 16:25:19 +080098 "libavb",
David Andersond614eca2019-09-09 17:57:06 -070099 "libcutils",
David Anderson963d7cc2019-01-17 13:34:57 -0800100 "libdm",
David Andersond614eca2019-09-09 17:57:06 -0700101 "libext4_utils",
David Andersond614eca2019-09-09 17:57:06 -0700102 "libfs_mgr",
103 "libgsi",
104 "libgsid",
105 "liblp",
106 "libutils",
Howard Chenee5c2b12019-11-08 11:57:47 +0800107 "libc++fs",
David Andersonc053b3b2019-01-08 18:22:07 -0800108 ],
109 local_include_dirs: ["include"],
110}
111
112aidl_interface {
113 name: "gsi_aidl_interface",
Jiyong Park5e06a0a2020-04-13 12:56:16 +0900114 unstable: true,
David Anderson6f373b72019-06-05 15:04:00 -0700115 srcs: [":gsiservice_aidl"],
David Andersonc053b3b2019-01-08 18:22:07 -0800116 local_include_dir: "aidl",
117 backend: {
118 ndk: {
119 enabled: false,
120 },
121 },
122}
123
124filegroup {
125 name: "gsiservice_aidl",
126 srcs: [
Yo Chiang53bed1c2020-01-01 16:25:19 +0800127 "aidl/android/gsi/AvbPublicKey.aidl",
David Anderson6a5b8a72019-01-16 16:24:48 -0800128 "aidl/android/gsi/GsiProgress.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800129 "aidl/android/gsi/IGsiService.aidl",
Howard Chen0e188062020-02-26 12:48:41 +0800130 "aidl/android/gsi/IGsiServiceCallback.aidl",
Yo Chiang53bed1c2020-01-01 16:25:19 +0800131 "aidl/android/gsi/IImageService.aidl",
Yifan Hongd66695b2019-12-23 16:07:45 -0800132 "aidl/android/gsi/IProgressCallback.aidl",
David Anderson6f373b72019-06-05 15:04:00 -0700133 "aidl/android/gsi/MappedImage.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800134 ],
Jiyong Parkeaabad02019-08-16 21:10:23 +0900135 path: "aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800136}
Sasha Smundakb7b17c12019-10-29 14:54:14 -0700137
138vts_config {
139 name: "VtsGsiBootTest",
140}