platform_system_security/fsverity_init/Android.bp
Jeff Vander Stoep 3fc82ead6b 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
2021-11-22 21:24:52 +01:00

43 lines
1,014 B
Text

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_security_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_security_license"],
}
cc_binary {
name: "fsverity_init",
srcs: [
"main.cpp",
],
static_libs: [
"libc++fs",
"libfsverity_init",
"libmini_keyctl_static",
],
shared_libs: [
"libbase",
"libkeyutils",
"liblog",
],
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,
}