db48ce2ba9
f61f41494e
).
disable-verity fails with incorrect error message in userdebug.
Bug: b/232742280
Test: Manual.
Signed-off-by: Shaju Mathew <shaju@google.com>
Change-Id: Icc00433710452e5dca8f5e8e997df2c72e23e4b4
40 lines
797 B
Text
40 lines
797 B
Text
// Copyright 2019 The Android Open Source Project
|
|
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "set-verity-state",
|
|
srcs: ["set-verity-state.cpp"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcrypto",
|
|
"libcrypto_utils",
|
|
"libcutils",
|
|
"libfec",
|
|
"libfs_mgr_binder",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
static_libs: [
|
|
"libavb_user",
|
|
],
|
|
|
|
cflags: ["-Werror"],
|
|
cppflags: [
|
|
"-DALLOW_DISABLE_VERITY=0",
|
|
],
|
|
product_variables: {
|
|
debuggable: {
|
|
cppflags: [
|
|
"-UALLOW_DISABLE_VERITY",
|
|
"-DALLOW_DISABLE_VERITY=1",
|
|
],
|
|
},
|
|
},
|
|
symlinks: [
|
|
"enable-verity",
|
|
"disable-verity",
|
|
],
|
|
}
|