blob: 12d07e6dd09bb3e6029ae5b0d7a0ef21741bdb1a [file] [log] [blame]
AnilKumar Chimata36017212018-05-11 00:31:38 +05301sourceFiles = ["cryptfs_hw.c"]
2
3commonSharedLibraries = [
4 "libcutils",
5 "libutils",
6 "libdl",
7 "libhardware",
8 "liblog",
9]
10
11cc_library_shared {
12 name: "libcryptfs_hw",
Michael Bestas08912552018-09-27 00:33:21 +030013 header_libs: ["generated_kernel_headers",
AnilKumar Chimata36017212018-05-11 00:31:38 +053014 "libhardware_headers"],
15 cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"],
16 srcs: sourceFiles,
17 shared_libs: commonSharedLibraries,
18
Michael Bestas5978a5e2017-12-20 19:12:59 +020019 product_variables: {
20 bliss: {
pimpmaneaton72560a42019-06-24 18:35:26 -060021 supports_legacy_hw_fde: {
Michael Bestas5978a5e2017-12-20 19:12:59 +020022 cflags: ["-DLEGACY_HW_DISK_ENCRYPTION"],
23 },
pimpmaneaton72560a42019-06-24 18:35:26 -060024 should_skip_waiting_for_qsee: {
Michael Bestase4e558e2017-12-20 22:07:16 +020025 cflags: ["-DWAIT_FOR_QSEE"],
26 },
Erfan Abdi1001dd52019-03-08 18:18:12 +020027 uses_metadata_as_fde_key: {
28 cflags: ["-DUSE_METADATA_FOR_KEY"],
29 },
Michael Bestas5978a5e2017-12-20 19:12:59 +020030 },
31 },
32
AnilKumar Chimata36017212018-05-11 00:31:38 +053033 owner: "qti",
34}
35
36cc_library_headers {
37 name: "libcryptfs_hw_headers",
38 export_include_dirs: ["."],
39}