Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2015 The Android Open Source Project |
| 3 | # |
| 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 | |
| 17 | LOCAL_PATH := $(my-dir) |
| 18 | |
Alex Deymo | 787dc41 | 2015-10-29 11:39:20 -0700 | [diff] [blame] | 19 | # Default values for the USE flags. Override these USE flags from your product. |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 20 | BRILLO_USE_DBUS ?= 1 |
Alex Deymo | 787dc41 | 2015-10-29 11:39:20 -0700 | [diff] [blame] | 21 | BRILLO_USE_HWID_OVERRIDE ?= 0 |
| 22 | BRILLO_USE_MTD ?= 0 |
| 23 | BRILLO_USE_POWER_MANAGEMENT ?= 0 |
Alex Deymo | f7ead81 | 2015-10-23 17:37:27 -0700 | [diff] [blame] | 24 | BRILLO_USE_WEAVE ?= 0 |
Alex Deymo | 787dc41 | 2015-10-29 11:39:20 -0700 | [diff] [blame] | 25 | |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 26 | ue_common_cflags := \ |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 27 | -DUSE_DBUS=$(BRILLO_USE_DBUS) \ |
Alex Deymo | 787dc41 | 2015-10-29 11:39:20 -0700 | [diff] [blame] | 28 | -DUSE_HWID_OVERRIDE=$(BRILLO_USE_HWID_OVERRIDE) \ |
| 29 | -DUSE_MTD=$(BRILLO_USE_MTD) \ |
| 30 | -DUSE_POWER_MANAGEMENT=$(BRILLO_USE_POWER_MANAGEMENT) \ |
Alex Deymo | f7ead81 | 2015-10-23 17:37:27 -0700 | [diff] [blame] | 31 | -DUSE_WEAVE=$(BRILLO_USE_WEAVE) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 32 | -D_FILE_OFFSET_BITS=64 \ |
| 33 | -D_POSIX_C_SOURCE=199309L \ |
| 34 | -Wa,--noexecstack \ |
| 35 | -Wall \ |
| 36 | -Werror \ |
| 37 | -Wextra \ |
| 38 | -Wformat=2 \ |
| 39 | -Wno-psabi \ |
| 40 | -Wno-unused-parameter \ |
| 41 | -ffunction-sections \ |
| 42 | -fstack-protector-strong \ |
| 43 | -fvisibility=hidden |
| 44 | ue_common_cppflags := \ |
| 45 | -Wnon-virtual-dtor \ |
| 46 | -fno-strict-aliasing \ |
| 47 | -std=gnu++11 |
| 48 | ue_common_ldflags := \ |
| 49 | -Wl,--gc-sections |
| 50 | ue_common_c_includes := \ |
| 51 | $(LOCAL_PATH)/client_library/include \ |
| 52 | external/gtest/include \ |
| 53 | system |
| 54 | ue_common_shared_libraries := \ |
| 55 | libbrillo \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 56 | libbrillo-http \ |
| 57 | libbrillo-stream \ |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 58 | libchrome |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 59 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 60 | ifeq ($(BRILLO_USE_DBUS),1) |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 61 | |
| 62 | # update_engine_client-dbus-proxies (from generate-dbus-proxies.gypi) |
| 63 | # ======================================================== |
| 64 | include $(CLEAR_VARS) |
| 65 | LOCAL_MODULE := update_engine_client-dbus-proxies |
| 66 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 67 | LOCAL_SRC_FILES := \ |
| 68 | dbus_bindings/dbus-service-config.json \ |
| 69 | dbus_bindings/org.chromium.UpdateEngineInterface.dbus-xml |
| 70 | LOCAL_DBUS_PROXY_PREFIX := update_engine |
| 71 | include $(BUILD_STATIC_LIBRARY) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 72 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 73 | endif # BRILLO_USE_DBUS == 1 |
| 74 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 75 | # update_metadata-protos (type: static_library) |
| 76 | # ======================================================== |
| 77 | # Protobufs. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 78 | ue_update_metadata_protos_exported_static_libraries := \ |
| 79 | update_metadata-protos |
| 80 | ue_update_metadata_protos_exported_shared_libraries := \ |
Alex Vakulenko | ab5bd66 | 2015-12-21 12:24:45 -0800 | [diff] [blame] | 81 | libprotobuf-cpp-lite |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 82 | |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 83 | ue_update_metadata_protos_src_files := \ |
| 84 | update_metadata.proto |
| 85 | |
| 86 | # Build for the host. |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 87 | include $(CLEAR_VARS) |
| 88 | LOCAL_MODULE := update_metadata-protos |
| 89 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Ying Wang | dbd1711 | 2015-12-17 11:59:09 -0800 | [diff] [blame] | 90 | LOCAL_IS_HOST_MODULE := true |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 91 | generated_sources_dir := $(call local-generated-sources-dir) |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 92 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(generated_sources_dir)/proto/system |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 93 | LOCAL_SRC_FILES := $(ue_update_metadata_protos_src_files) |
| 94 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 95 | |
| 96 | # Build for the target. |
| 97 | include $(CLEAR_VARS) |
| 98 | LOCAL_MODULE := update_metadata-protos |
| 99 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 100 | generated_sources_dir := $(call local-generated-sources-dir) |
| 101 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(generated_sources_dir)/proto/system |
| 102 | LOCAL_SRC_FILES := $(ue_update_metadata_protos_src_files) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 103 | include $(BUILD_STATIC_LIBRARY) |
| 104 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 105 | ifeq ($(BRILLO_USE_DBUS),1) |
| 106 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 107 | # update_engine-dbus-adaptor (from generate-dbus-adaptors.gypi) |
| 108 | # ======================================================== |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 109 | # Chrome D-Bus bindings. |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 110 | include $(CLEAR_VARS) |
| 111 | LOCAL_MODULE := update_engine-dbus-adaptor |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 112 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 113 | LOCAL_SRC_FILES := \ |
| 114 | dbus_bindings/org.chromium.UpdateEngineInterface.dbus-xml |
| 115 | include $(BUILD_STATIC_LIBRARY) |
| 116 | |
| 117 | # update_engine-dbus-libcros-client (from generate-dbus-proxies.gypi) |
| 118 | # ======================================================== |
| 119 | include $(CLEAR_VARS) |
| 120 | LOCAL_MODULE := update_engine-dbus-libcros-client |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 121 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 122 | LOCAL_SRC_FILES := \ |
| 123 | dbus_bindings/org.chromium.LibCrosService.dbus-xml |
| 124 | LOCAL_DBUS_PROXY_PREFIX := libcros |
| 125 | include $(BUILD_STATIC_LIBRARY) |
| 126 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 127 | endif # BRILLO_USE_DBUS == 1 |
| 128 | |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 129 | # libpayload_consumer (type: static_library) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 130 | # ======================================================== |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 131 | # The payload application component and common dependencies. |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 132 | ue_libpayload_consumer_exported_static_libraries := \ |
| 133 | update_metadata-protos \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 134 | libxz-host \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 135 | libbz \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 136 | $(ue_update_metadata_protos_exported_static_libraries) |
| 137 | ue_libpayload_consumer_exported_shared_libraries := \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 138 | libcrypto-host \ |
| 139 | libcurl-host \ |
| 140 | libssl-host \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 141 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 142 | |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 143 | ue_libpayload_consumer_src_files := \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 144 | common/action_processor.cc \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 145 | common/boot_control_stub.cc \ |
| 146 | common/certificate_checker.cc \ |
| 147 | common/clock.cc \ |
| 148 | common/constants.cc \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 149 | common/hash_calculator.cc \ |
| 150 | common/http_common.cc \ |
| 151 | common/http_fetcher.cc \ |
| 152 | common/hwid_override.cc \ |
| 153 | common/libcurl_http_fetcher.cc \ |
| 154 | common/multi_range_http_fetcher.cc \ |
| 155 | common/platform_constants_android.cc \ |
| 156 | common/prefs.cc \ |
| 157 | common/subprocess.cc \ |
| 158 | common/terminator.cc \ |
| 159 | common/utils.cc \ |
| 160 | payload_consumer/bzip_extent_writer.cc \ |
| 161 | payload_consumer/delta_performer.cc \ |
| 162 | payload_consumer/download_action.cc \ |
| 163 | payload_consumer/extent_writer.cc \ |
| 164 | payload_consumer/file_descriptor.cc \ |
| 165 | payload_consumer/file_writer.cc \ |
| 166 | payload_consumer/filesystem_verifier_action.cc \ |
| 167 | payload_consumer/install_plan.cc \ |
| 168 | payload_consumer/payload_constants.cc \ |
| 169 | payload_consumer/payload_verifier.cc \ |
| 170 | payload_consumer/postinstall_runner_action.cc \ |
| 171 | payload_consumer/xz_extent_writer.cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 172 | |
| 173 | ifeq ($(HOST_OS),linux) |
| 174 | # Build for the host. |
| 175 | include $(CLEAR_VARS) |
| 176 | LOCAL_MODULE := libpayload_consumer |
| 177 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 178 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 179 | LOCAL_CLANG := true |
| 180 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 181 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 182 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 183 | LOCAL_C_INCLUDES := \ |
| 184 | $(ue_common_c_includes) \ |
| 185 | external/e2fsprogs/lib |
| 186 | LOCAL_STATIC_LIBRARIES := \ |
| 187 | update_metadata-protos \ |
| 188 | $(ue_libpayload_consumer_exported_static_libraries) \ |
| 189 | $(ue_update_metadata_protos_exported_static_libraries) |
| 190 | LOCAL_SHARED_LIBRARIES := \ |
| 191 | $(ue_common_shared_libraries) \ |
| 192 | $(ue_libpayload_consumer_exported_shared_libraries) \ |
| 193 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 194 | LOCAL_SRC_FILES := $(ue_libpayload_consumer_src_files) |
| 195 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 196 | endif # HOST_OS == linux |
| 197 | |
| 198 | # Build for the target. |
| 199 | include $(CLEAR_VARS) |
| 200 | LOCAL_MODULE := libpayload_consumer |
| 201 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 202 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 203 | LOCAL_CLANG := true |
| 204 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 205 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 206 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 207 | LOCAL_C_INCLUDES := \ |
| 208 | $(ue_common_c_includes) \ |
| 209 | external/e2fsprogs/lib |
| 210 | LOCAL_STATIC_LIBRARIES := \ |
| 211 | update_metadata-protos \ |
| 212 | $(ue_libpayload_consumer_exported_static_libraries:-host=) \ |
| 213 | $(ue_update_metadata_protos_exported_static_libraries) |
| 214 | LOCAL_SHARED_LIBRARIES := \ |
| 215 | $(ue_common_shared_libraries) \ |
| 216 | $(ue_libpayload_consumer_exported_shared_libraries:-host=) \ |
| 217 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 218 | LOCAL_SRC_FILES := $(ue_libpayload_consumer_src_files) |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 219 | include $(BUILD_STATIC_LIBRARY) |
| 220 | |
Alex Deymo | cd60dca | 2015-11-18 00:57:20 -0300 | [diff] [blame] | 221 | ifeq ($(BRILLO_USE_DBUS),1) |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 222 | |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 223 | # libupdate_engine (type: static_library) |
| 224 | # ======================================================== |
| 225 | # The main daemon static_library with all the code used to check for updates |
| 226 | # with Omaha and expose a DBus daemon. |
| 227 | ue_libupdate_engine_exported_c_includes := \ |
| 228 | $(LOCAL_PATH)/include \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 229 | external/cros/system_api/dbus |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 230 | ue_libupdate_engine_exported_static_libraries := \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 231 | libpayload_consumer \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 232 | update_metadata-protos \ |
| 233 | update_engine-dbus-adaptor \ |
| 234 | update_engine-dbus-libcros-client \ |
| 235 | update_engine_client-dbus-proxies \ |
David Zeuthen | 753fadc | 2015-09-15 16:34:09 -0400 | [diff] [blame] | 236 | libbz \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 237 | libfs_mgr \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 238 | $(ue_libpayload_consumer_exported_static_libraries) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 239 | $(ue_update_metadata_protos_exported_static_libraries) |
| 240 | ue_libupdate_engine_exported_shared_libraries := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 241 | libdbus \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 242 | libbrillo-dbus \ |
| 243 | libchrome-dbus \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 244 | libmetrics \ |
Alex Deymo | 7eb2305 | 2015-10-09 15:27:59 -0700 | [diff] [blame] | 245 | libshill-client \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 246 | libexpat \ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 247 | libbrillo-policy \ |
Alex Deymo | eadab7d | 2015-10-09 14:45:02 -0700 | [diff] [blame] | 248 | libhardware \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 249 | libcutils \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 250 | $(ue_libpayload_consumer_exported_shared_libraries) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 251 | $(ue_update_metadata_protos_exported_shared_libraries) |
Alex Deymo | f7ead81 | 2015-10-23 17:37:27 -0700 | [diff] [blame] | 252 | ifeq ($(BRILLO_USE_WEAVE),1) |
| 253 | ue_libupdate_engine_exported_shared_libraries += \ |
| 254 | libweaved |
| 255 | endif # BRILLO_USE_WEAVE == 1 |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 256 | |
| 257 | include $(CLEAR_VARS) |
| 258 | LOCAL_MODULE := libupdate_engine |
| 259 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 260 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 261 | LOCAL_CLANG := true |
| 262 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(ue_libupdate_engine_exported_c_includes) |
| 263 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 264 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 265 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 266 | LOCAL_C_INCLUDES := \ |
| 267 | $(ue_common_c_includes) \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 268 | $(ue_libupdate_engine_exported_c_includes) |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 269 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 270 | libpayload_consumer \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 271 | update_metadata-protos \ |
| 272 | update_engine-dbus-adaptor \ |
| 273 | update_engine-dbus-libcros-client \ |
| 274 | update_engine_client-dbus-proxies \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 275 | $(ue_libupdate_engine_exported_static_libraries:-host=) \ |
| 276 | $(ue_libpayload_consumer_exported_static_libraries:-host=) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 277 | $(ue_update_metadata_protos_exported_static_libraries) |
| 278 | LOCAL_SHARED_LIBRARIES := \ |
| 279 | $(ue_common_shared_libraries) \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 280 | $(ue_libupdate_engine_exported_shared_libraries:-host=) \ |
| 281 | $(ue_libpayload_consumer_exported_shared_libraries:-host=) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 282 | $(ue_update_metadata_protos_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 283 | LOCAL_SRC_FILES := \ |
Alex Deymo | 1b03f9f | 2015-12-09 00:38:36 -0800 | [diff] [blame] | 284 | boot_control_android.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 285 | chrome_browser_proxy_resolver.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 286 | connection_manager.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 287 | daemon.cc \ |
| 288 | dbus_service.cc \ |
Alex Deymo | 1b03f9f | 2015-12-09 00:38:36 -0800 | [diff] [blame] | 289 | hardware_android.cc \ |
Alex Deymo | 8561665 | 2015-10-15 18:48:31 -0700 | [diff] [blame] | 290 | image_properties_android.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 291 | libcros_proxy.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 292 | metrics.cc \ |
Alex Deymo | 38429cf | 2015-11-11 18:27:22 -0800 | [diff] [blame] | 293 | metrics_utils.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 294 | omaha_request_action.cc \ |
| 295 | omaha_request_params.cc \ |
| 296 | omaha_response_handler_action.cc \ |
| 297 | p2p_manager.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 298 | payload_state.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 299 | proxy_resolver.cc \ |
| 300 | real_system_state.cc \ |
| 301 | shill_proxy.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 302 | update_attempter.cc \ |
| 303 | update_manager/boxed_value.cc \ |
| 304 | update_manager/chromeos_policy.cc \ |
| 305 | update_manager/default_policy.cc \ |
| 306 | update_manager/evaluation_context.cc \ |
| 307 | update_manager/policy.cc \ |
| 308 | update_manager/real_config_provider.cc \ |
| 309 | update_manager/real_device_policy_provider.cc \ |
| 310 | update_manager/real_random_provider.cc \ |
| 311 | update_manager/real_shill_provider.cc \ |
| 312 | update_manager/real_system_provider.cc \ |
| 313 | update_manager/real_time_provider.cc \ |
| 314 | update_manager/real_updater_provider.cc \ |
| 315 | update_manager/state_factory.cc \ |
| 316 | update_manager/update_manager.cc \ |
Alex Deymo | f7ead81 | 2015-10-23 17:37:27 -0700 | [diff] [blame] | 317 | update_status_utils.cc \ |
| 318 | weave_service_factory.cc |
| 319 | ifeq ($(BRILLO_USE_WEAVE),1) |
| 320 | LOCAL_SRC_FILES += \ |
| 321 | weave_service.cc |
| 322 | endif # BRILLO_USE_WEAVE == 1 |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 323 | include $(BUILD_STATIC_LIBRARY) |
| 324 | |
Alex Deymo | cd60dca | 2015-11-18 00:57:20 -0300 | [diff] [blame] | 325 | endif # BRILLO_USE_DBUS == 1 |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 326 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 327 | # update_engine (type: executable) |
| 328 | # ======================================================== |
| 329 | # update_engine daemon. |
| 330 | include $(CLEAR_VARS) |
| 331 | LOCAL_MODULE := update_engine |
| 332 | LOCAL_MODULE_CLASS := EXECUTABLES |
Sen Jiang | 5609277 | 2015-11-23 14:41:00 -0800 | [diff] [blame] | 333 | LOCAL_REQUIRED_MODULES := \ |
Alex Deymo | ab49446 | 2015-11-30 17:07:36 -0300 | [diff] [blame] | 334 | bspatch \ |
| 335 | cacerts_google |
Alex Deymo | f7ead81 | 2015-10-23 17:37:27 -0700 | [diff] [blame] | 336 | ifeq ($(BRILLO_USE_WEAVE),1) |
| 337 | LOCAL_REQUIRED_MODULES += updater.json |
| 338 | endif # BRILLO_USE_WEAVE == 1 |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 339 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 340 | LOCAL_CLANG := true |
| 341 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 342 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 343 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 344 | LOCAL_C_INCLUDES := \ |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 345 | $(ue_common_c_includes) |
| 346 | |
| 347 | ifdef BRILLO |
| 348 | |
| 349 | LOCAL_C_INCLUDES += \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 350 | $(ue_libupdate_engine_exported_c_includes) |
| 351 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 352 | libupdate_engine \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 353 | $(ue_libupdate_engine_exported_static_libraries:-host=) |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 354 | |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 355 | LOCAL_SHARED_LIBRARIES := \ |
| 356 | $(ue_common_shared_libraries) \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 357 | $(ue_libupdate_engine_exported_shared_libraries:-host=) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 358 | LOCAL_SRC_FILES := \ |
| 359 | main.cc |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 360 | |
| 361 | else # !defined(BRILLO) |
| 362 | |
| 363 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/binder_bindings |
| 364 | LOCAL_SHARED_LIBRARIES := \ |
| 365 | libbinder \ |
| 366 | liblog \ |
| 367 | libutils |
| 368 | LOCAL_SRC_FILES := \ |
| 369 | binder_bindings/android/os/IUpdateEngine.aidl \ |
| 370 | binder_bindings/android/os/IUpdateEnginePayloadApplicationCallback.aidl \ |
| 371 | binder_main.cc \ |
| 372 | binder_service.cc |
| 373 | |
| 374 | endif # defined(BRILLO) |
| 375 | |
Gilad Arnold | 70141f2 | 2015-09-17 09:06:30 -0700 | [diff] [blame] | 376 | LOCAL_INIT_RC := update_engine.rc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 377 | include $(BUILD_EXECUTABLE) |
| 378 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 379 | ifeq ($(BRILLO_USE_DBUS),1) |
| 380 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 381 | # update_engine_client (type: executable) |
| 382 | # ======================================================== |
| 383 | # update_engine console client. |
| 384 | include $(CLEAR_VARS) |
| 385 | LOCAL_MODULE := update_engine_client |
| 386 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 387 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 388 | LOCAL_CLANG := true |
| 389 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 390 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 391 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 392 | LOCAL_C_INCLUDES := \ |
| 393 | $(ue_common_c_includes) \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 394 | $(LOCAL_PATH)/include |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 395 | LOCAL_STATIC_LIBRARIES := update_engine_client-dbus-proxies |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 396 | LOCAL_SHARED_LIBRARIES := \ |
| 397 | $(ue_common_shared_libraries) \ |
| 398 | libdbus \ |
| 399 | libbrillo-dbus \ |
Casey Dahlin | e844c1a | 2015-12-16 14:30:58 -0800 | [diff] [blame] | 400 | libchrome-dbus \ |
| 401 | libupdate_engine_client |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 402 | LOCAL_SRC_FILES := \ |
| 403 | update_engine_client.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 404 | include $(BUILD_EXECUTABLE) |
| 405 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 406 | endif # BRILLO_USE_DBUS == 1 |
| 407 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 408 | # libpayload_generator (type: static_library) |
| 409 | # ======================================================== |
| 410 | # server-side code. This is used for delta_generator and unittests but not |
| 411 | # for any client code. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 412 | ue_libpayload_generator_exported_static_libraries := \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 413 | libpayload_consumer \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 414 | update_metadata-protos \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 415 | $(ue_libpayload_consumer_exported_static_libraries) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 416 | $(ue_update_metadata_protos_exported_static_libraries) |
| 417 | ue_libpayload_generator_exported_shared_libraries := \ |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 418 | libext2fs-host \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 419 | $(ue_libpayload_consumer_exported_shared_libraries) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 420 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 421 | |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 422 | ue_libpayload_generator_src_files := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 423 | payload_generator/ab_generator.cc \ |
| 424 | payload_generator/annotated_operation.cc \ |
| 425 | payload_generator/blob_file_writer.cc \ |
| 426 | payload_generator/block_mapping.cc \ |
Alex Deymo | 0bc2611 | 2015-10-19 20:54:57 -0700 | [diff] [blame] | 427 | payload_generator/bzip.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 428 | payload_generator/cycle_breaker.cc \ |
| 429 | payload_generator/delta_diff_generator.cc \ |
| 430 | payload_generator/delta_diff_utils.cc \ |
| 431 | payload_generator/ext2_filesystem.cc \ |
| 432 | payload_generator/extent_ranges.cc \ |
| 433 | payload_generator/extent_utils.cc \ |
| 434 | payload_generator/full_update_generator.cc \ |
| 435 | payload_generator/graph_types.cc \ |
| 436 | payload_generator/graph_utils.cc \ |
| 437 | payload_generator/inplace_generator.cc \ |
| 438 | payload_generator/payload_file.cc \ |
| 439 | payload_generator/payload_generation_config.cc \ |
| 440 | payload_generator/payload_signer.cc \ |
| 441 | payload_generator/raw_filesystem.cc \ |
| 442 | payload_generator/tarjan.cc \ |
| 443 | payload_generator/topological_sort.cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 444 | |
| 445 | ifeq ($(HOST_OS),linux) |
| 446 | # Build for the host. |
| 447 | include $(CLEAR_VARS) |
| 448 | LOCAL_MODULE := libpayload_generator |
| 449 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 450 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 451 | LOCAL_CLANG := true |
| 452 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 453 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 454 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 455 | LOCAL_C_INCLUDES := $(ue_common_c_includes) |
| 456 | LOCAL_STATIC_LIBRARIES := \ |
| 457 | libpayload_consumer \ |
| 458 | update_metadata-protos \ |
| 459 | $(ue_libpayload_consumer_exported_static_libraries) \ |
| 460 | $(ue_update_metadata_protos_exported_static_libraries) |
| 461 | LOCAL_SHARED_LIBRARIES := \ |
| 462 | $(ue_common_shared_libraries) \ |
| 463 | $(ue_libpayload_generator_exported_shared_libraries) \ |
| 464 | $(ue_libpayload_consumer_exported_shared_libraries) \ |
| 465 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 466 | LOCAL_SRC_FILES := $(ue_libpayload_generator_src_files) |
| 467 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 468 | endif # HOST_OS == linux |
| 469 | |
| 470 | # Build for the target. |
| 471 | include $(CLEAR_VARS) |
| 472 | LOCAL_MODULE := libpayload_generator |
| 473 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 474 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 475 | LOCAL_CLANG := true |
| 476 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 477 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 478 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 479 | LOCAL_C_INCLUDES := $(ue_common_c_includes) |
| 480 | LOCAL_STATIC_LIBRARIES := \ |
| 481 | libpayload_consumer \ |
| 482 | update_metadata-protos \ |
| 483 | $(ue_libpayload_consumer_exported_static_libraries:-host=) \ |
| 484 | $(ue_update_metadata_protos_exported_static_libraries) |
| 485 | LOCAL_SHARED_LIBRARIES := \ |
| 486 | $(ue_common_shared_libraries) \ |
| 487 | $(ue_libpayload_generator_exported_shared_libraries:-host=) \ |
| 488 | $(ue_libpayload_consumer_exported_shared_libraries:-host=) \ |
| 489 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 490 | LOCAL_SRC_FILES := $(ue_libpayload_generator_src_files) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 491 | include $(BUILD_STATIC_LIBRARY) |
| 492 | |
| 493 | # delta_generator (type: executable) |
| 494 | # ======================================================== |
| 495 | # server-side delta generator. |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 496 | ue_delta_generator_src_files := \ |
| 497 | payload_generator/generate_delta_main.cc |
| 498 | |
| 499 | ifeq ($(HOST_OS),linux) |
| 500 | # Build for the host. |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 501 | include $(CLEAR_VARS) |
| 502 | LOCAL_MODULE := delta_generator |
| 503 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 504 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 505 | LOCAL_CLANG := true |
| 506 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 507 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 508 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 509 | LOCAL_C_INCLUDES := $(ue_common_c_includes) |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 510 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 511 | libpayload_consumer \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 512 | libpayload_generator \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 513 | $(ue_libpayload_consumer_exported_static_libraries) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 514 | $(ue_libpayload_generator_exported_static_libraries) |
| 515 | LOCAL_SHARED_LIBRARIES := \ |
| 516 | $(ue_common_shared_libraries) \ |
Alex Deymo | b09305e | 2015-12-02 16:09:13 -0300 | [diff] [blame] | 517 | $(ue_libpayload_consumer_exported_shared_libraries) \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 518 | $(ue_libpayload_generator_exported_shared_libraries) |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 519 | LOCAL_SRC_FILES := $(ue_delta_generator_src_files) |
| 520 | include $(BUILD_HOST_EXECUTABLE) |
| 521 | endif # HOST_OS == linux |
| 522 | |
| 523 | # Build for the target. |
| 524 | include $(CLEAR_VARS) |
| 525 | LOCAL_MODULE := delta_generator |
| 526 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 527 | LOCAL_CPP_EXTENSION := .cc |
Alex Deymo | 05e0e38 | 2015-12-07 20:18:16 -0800 | [diff] [blame] | 528 | LOCAL_CLANG := true |
| 529 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 530 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 531 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 532 | LOCAL_C_INCLUDES := $(ue_common_c_includes) |
| 533 | LOCAL_STATIC_LIBRARIES := \ |
| 534 | libpayload_consumer \ |
| 535 | libpayload_generator \ |
| 536 | $(ue_libpayload_consumer_exported_static_libraries:-host=) \ |
| 537 | $(ue_libpayload_generator_exported_static_libraries:-host=) |
| 538 | LOCAL_SHARED_LIBRARIES := \ |
| 539 | $(ue_common_shared_libraries) \ |
| 540 | $(ue_libpayload_consumer_exported_shared_libraries:-host=) \ |
| 541 | $(ue_libpayload_generator_exported_shared_libraries:-host=) |
| 542 | LOCAL_SRC_FILES := $(ue_delta_generator_src_files) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 543 | include $(BUILD_EXECUTABLE) |
| 544 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 545 | ifeq ($(BRILLO_USE_DBUS),1) |
| 546 | |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 547 | # libupdate_engine_client |
| 548 | # ======================================================== |
| 549 | include $(CLEAR_VARS) |
| 550 | LOCAL_MODULE := libupdate_engine_client |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 551 | LOCAL_CFLAGS := \ |
| 552 | -Wall \ |
| 553 | -Werror \ |
| 554 | -Wno-unused-parameter |
| 555 | LOCAL_CLANG := true |
| 556 | LOCAL_CPP_EXTENSION := .cc |
| 557 | LOCAL_C_INCLUDES := \ |
| 558 | $(LOCAL_PATH)/client_library/include \ |
| 559 | external/cros/system_api/dbus \ |
| 560 | system \ |
| 561 | external/gtest/include |
| 562 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/client_library/include |
| 563 | LOCAL_SHARED_LIBRARIES := \ |
| 564 | libchrome \ |
| 565 | libchrome-dbus \ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 566 | libbrillo \ |
| 567 | libbrillo-dbus |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 568 | LOCAL_STATIC_LIBRARIES := \ |
| 569 | update_engine_client-dbus-proxies |
| 570 | LOCAL_SRC_FILES := \ |
| 571 | client_library/client.cc \ |
| 572 | client_library/client_impl.cc \ |
| 573 | update_status_utils.cc |
| 574 | include $(BUILD_SHARED_LIBRARY) |
| 575 | |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 576 | endif # BRILLO_USE_DBUS == 1 |
Gaurav Shah | 263614f | 2015-09-24 14:20:38 -0700 | [diff] [blame] | 577 | |
Alex Deymo | f7ead81 | 2015-10-23 17:37:27 -0700 | [diff] [blame] | 578 | # Weave schema files |
| 579 | # ======================================================== |
| 580 | include $(CLEAR_VARS) |
| 581 | LOCAL_MODULE := updater.json |
| 582 | LOCAL_MODULE_CLASS := ETC |
| 583 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/weaved/traits |
| 584 | LOCAL_SRC_FILES := weaved/traits/$(LOCAL_MODULE) |
| 585 | include $(BUILD_PREBUILT) |
| 586 | |
Gaurav Shah | 263614f | 2015-09-24 14:20:38 -0700 | [diff] [blame] | 587 | # Update payload signing public key. |
| 588 | # ======================================================== |
| 589 | include $(CLEAR_VARS) |
| 590 | LOCAL_MODULE := brillo-update-payload-key |
| 591 | LOCAL_MODULE_CLASS := ETC |
| 592 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/update_engine |
| 593 | LOCAL_MODULE_STEM := update-payload-key.pub.pem |
| 594 | LOCAL_SRC_FILES := update_payload_key/brillo-update-payload-key.pub.pem |
| 595 | LOCAL_BUILT_MODULE_STEM := update_payload_key/brillo-update-payload-key.pub.pem |
| 596 | include $(BUILD_PREBUILT) |
Tao Bao | 042f8a1 | 2016-01-07 16:52:14 -0800 | [diff] [blame^] | 597 | |
| 598 | # Brillo update payload generation script |
| 599 | # ======================================================== |
| 600 | ifeq ($(HOST_OS),linux) |
| 601 | include $(CLEAR_VARS) |
| 602 | LOCAL_SRC_FILES := scripts/brillo_update_payload |
| 603 | LOCAL_MODULE := brillo_update_payload |
| 604 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 605 | LOCAL_IS_HOST_MODULE := true |
| 606 | LOCAL_MODULE_TAGS := optional |
| 607 | LOCAL_REQUIRED_MODULES := \ |
| 608 | delta_generator \ |
| 609 | shflags |
| 610 | include $(BUILD_PREBUILT) |
| 611 | endif # HOST_OS == linux |