1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_team: "trendy_team_android_kernel",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_defaults {
23    name: "vts_security_avb_defaults",
24    srcs: [
25        "gsi_validation_utils.cpp",
26    ],
27    static_libs: [
28        "libavb_user",
29        "libavb",
30        "libbase",
31        "libcrypto_static",
32        "libfs_avb",
33        "libfs_mgr",
34        "liblog",
35    ],
36    shared_libs: [
37        "libandroidfw",
38        "libutils",
39    ],
40    header_libs: [
41        "libstorage_literals_headers",
42    ],
43    data: [
44        ":q-gsi_avbpubkey",
45        ":r-gsi_avbpubkey",
46        ":s-gsi_avbpubkey",
47        ":t-gsi_avbpubkey",
48        ":qcar-gsi_avbpubkey",
49        ":gki-oem-2024_avbpubkey",
50    ],
51    cflags: [
52        "-Wall",
53        "-Werror",
54    ],
55}
56
57cc_test {
58    name: "vts_security_avb_test",
59    defaults: ["vts_security_avb_defaults"],
60    srcs: [
61        "VtsSecurityAvbTest.cpp",
62    ],
63    test_config: "vts_security_avb_test.xml",
64    test_suites: [
65        "device-tests",
66        "vts",
67    ],
68}
69
70cc_test {
71    name: "vts_gki_compliance_test",
72    defaults: [
73        "vts_security_avb_defaults",
74        "libvintf_static_user_defaults",
75    ],
76    srcs: [
77        "vts_gki_compliance_test.cpp",
78        "kernel_version_test.cpp",
79        "kernel_version_matrix.proto",
80        "ogki_builds_utils.cpp",
81    ],
82    static_libs: [
83        "libgmock",
84        "libkver",
85        "libtinyxml2",
86        "libvintf",
87        "libvts_vintf_test_common",
88    ],
89    proto: {
90        type: "full",
91    },
92    header_libs: [
93        "bootimg_headers",
94    ],
95    test_suites: [
96        "device-tests",
97        "vts",
98    ],
99    data: [
100        ":kernel_version_matrix.textproto",
101    ],
102
103    require_root: true,
104}
105
106filegroup {
107    name: "gsi_validation_utils_cpp",
108    srcs: ["gsi_validation_utils.cpp"],
109}
110
111filegroup {
112    name: "vts_gki_compliance_test_cpp",
113    srcs: [
114        "vts_gki_compliance_test.cpp",
115        "ogki_builds_utils.cpp",
116    ],
117}
118