2019-10-22 21:30:30 +02:00
|
|
|
// Copyright 2019 The Android Open Source Project
|
|
|
|
|
2021-02-17 04:02:14 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2019-10-22 21:30:30 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "set-verity-state",
|
|
|
|
srcs: ["set-verity-state.cpp"],
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcrypto",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcutils",
|
|
|
|
"libfec",
|
2019-12-18 06:06:33 +01:00
|
|
|
"libfs_mgr_binder",
|
2019-10-22 21:30:30 +02:00
|
|
|
"liblog",
|
2019-12-18 06:06:33 +01:00
|
|
|
"libutils",
|
2019-10-22 21:30:30 +02:00
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"libavb_user",
|
|
|
|
],
|
|
|
|
|
|
|
|
cflags: ["-Werror"],
|
2022-05-26 23:59:50 +02:00
|
|
|
cppflags: [
|
|
|
|
"-DALLOW_DISABLE_VERITY=0",
|
|
|
|
],
|
|
|
|
product_variables: {
|
|
|
|
debuggable: {
|
|
|
|
cppflags: [
|
|
|
|
"-UALLOW_DISABLE_VERITY",
|
|
|
|
"-DALLOW_DISABLE_VERITY=1",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2019-10-22 21:30:30 +02:00
|
|
|
symlinks: [
|
|
|
|
"enable-verity",
|
|
|
|
"disable-verity",
|
|
|
|
],
|
|
|
|
}
|