summaryrefslogtreecommitdiffstats
path: root/updater/Android.bp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-05-29 19:20:36 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-05-29 19:20:36 +0200
commit65d7d5b8cfd25482dacb93d3960f96f252e0f91c (patch)
tree679d9b5234c30cee95606f0a48786d7de6232ab5 /updater/Android.bp
parentMerge "recovery: report compliant reboot reason (Part Deux)" (diff)
parentImplement an update simulator to verify BB OTA packages on host (diff)
downloadandroid_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.tar
android_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.tar.gz
android_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.tar.bz2
android_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.tar.lz
android_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.tar.xz
android_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.tar.zst
android_bootable_recovery-65d7d5b8cfd25482dacb93d3960f96f252e0f91c.zip
Diffstat (limited to '')
-rw-r--r--updater/Android.bp61
1 files changed, 57 insertions, 4 deletions
diff --git a/updater/Android.bp b/updater/Android.bp
index 72f8bc9b3..a66155b3a 100644
--- a/updater/Android.bp
+++ b/updater/Android.bp
@@ -30,7 +30,6 @@ cc_defaults {
"libfec",
"libfec_rs",
"libverity_tree",
- "libfs_mgr",
"libgtest_prod",
"liblog",
"liblp",
@@ -46,6 +45,14 @@ cc_defaults {
"libcrypto_utils",
"libcutils",
"libutils",
+ ],
+}
+
+cc_defaults {
+ name: "libupdater_device_defaults",
+
+ static_libs: [
+ "libfs_mgr",
"libtune2fs",
"libext2_com_err",
@@ -54,11 +61,13 @@ cc_defaults {
"libext2_uuid",
"libext2_e2p",
"libext2fs",
- ],
+ ]
}
cc_library_static {
- name: "libupdater",
+ name: "libupdater_core",
+
+ host_supported: true,
defaults: [
"recovery_defaults",
@@ -68,12 +77,33 @@ cc_library_static {
srcs: [
"blockimg.cpp",
"commands.cpp",
- "dynamic_partitions.cpp",
"install.cpp",
"updater.cpp",
+ ],
+
+ export_include_dirs: [
+ "include",
+ ],
+}
+
+cc_library_static {
+ name: "libupdater_device",
+
+ defaults: [
+ "recovery_defaults",
+ "libupdater_defaults",
+ "libupdater_device_defaults",
+ ],
+
+ srcs: [
+ "dynamic_partitions.cpp",
"updater_runtime.cpp",
],
+ static_libs: [
+ "libupdater_core",
+ ],
+
include_dirs: [
"external/e2fsprogs/misc",
],
@@ -82,3 +112,26 @@ cc_library_static {
"include",
],
}
+
+cc_library_host_static {
+ name: "libupdater_host",
+
+ defaults: [
+ "recovery_defaults",
+ "libupdater_defaults",
+ ],
+
+ srcs: [
+ "simulator_runtime.cpp",
+ "target_files.cpp",
+ ],
+
+ static_libs: [
+ "libupdater_core",
+ "libfstab",
+ ],
+
+ export_include_dirs: [
+ "include",
+ ],
+}