diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-11-22 14:45:42 +0100 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2021-11-22 21:24:52 +0100 |
commit | 3fc82ead6b16445aa6417ff666b1c19d3ad4cbd5 (patch) | |
tree | db454c26672b36e6bf5fb296cd9aa89c34f1f517 /fsverity_init/Android.bp | |
parent | 65178715aae7bc56ef8ffb277958cc1c23cdc655 (diff) | |
download | security-3fc82ead6b16445aa6417ff666b1c19d3ad4cbd5.tar.gz |
fsverity_init: refactor into library + binary
This is needed to import some of the functionality into first stage
init.
Bug: 199914227
Test: build
Change-Id: I0a78f62b1957404d7fe78c79151a1620834ea3a1
Diffstat (limited to 'fsverity_init/Android.bp')
-rw-r--r-- | fsverity_init/Android.bp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/fsverity_init/Android.bp b/fsverity_init/Android.bp index 39d4e6b6..83c59457 100644 --- a/fsverity_init/Android.bp +++ b/fsverity_init/Android.bp @@ -10,17 +10,34 @@ package { cc_binary { name: "fsverity_init", srcs: [ - "fsverity_init.cpp", + "main.cpp", ], static_libs: [ "libc++fs", + "libfsverity_init", "libmini_keyctl_static", ], shared_libs: [ "libbase", "libkeyutils", "liblog", - "liblogwrap", ], cflags: ["-Werror", "-Wall", "-Wextra"], } + +cc_library { + name: "libfsverity_init", + srcs: ["fsverity_init.cpp"], + static_libs: [ + "libc++fs", + "libmini_keyctl_static", + ], + shared_libs: [ + "libbase", + "libkeyutils", + "liblog", + ], + cflags: ["-Werror", "-Wall", "-Wextra"], + export_include_dirs: ["include"], + recovery_available: true, +} |