platform_system_core/libkeyutils/Android.bp
Xiaoyong Zhou b29b27ec7f Change mini-keyctl command format.
This CL change the mini-keyctl tool to make it compitable with libkeyctl
tool to make it more useful.

Bug: 112038861
Test: mini-keyctl padd asymmetric 'desc' .fs-verity < /path/to/cert.der
Test: mini-keyctl unlink <key_id> <keyring_id>
Test: mini-keyctl restrict_keyring <keyring_id>

Change-Id: I950f07c7718f173823ce5a5cd08e0d1a0e23a007
2019-03-08 09:59:42 -08:00

32 lines
695 B
Text

cc_library {
name: "libkeyutils",
cflags: ["-Werror"],
defaults: ["linux_bionic_supported"],
recovery_available: true,
export_include_dirs: ["include/"],
local_include_dirs: ["include/"],
srcs: ["keyutils.cpp"],
stl: "none",
}
cc_test {
name: "libkeyutils-tests",
cflags: ["-Werror"],
shared_libs: ["libkeyutils"],
srcs: ["keyutils_test.cpp"],
test_suites: ["device-tests"],
}
cc_binary {
name: "mini-keyctl",
srcs: [
"mini_keyctl.cpp",
"mini_keyctl_utils.cpp"
],
shared_libs: [
"libbase",
"libkeyutils",
"liblog",
],
cflags: ["-Werror", "-Wall", "-Wextra", "-fexceptions"],
}