platform_system_core/set-verity-state/Android.bp
Shaju Mathew db48ce2ba9 Configuration for preprocessor symbol ALLOW_DISABLE_VERITY (followup for:
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
2022-05-27 02:41:50 -07:00

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",
],
}