• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2018 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_fwk_core_networking",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_defaults {
23    name: "binary_bpf_defaults",
24    srcs: ["BpfTest.cpp"],
25    shared_libs: [
26        "libcgrouprc",
27        "libcutils",
28        "libutils",
29        "liblog",
30        "libbase",
31    ],
32    static_libs: [
33        "libbpf_bcc",
34        "libbpf_android",
35        "libbpf_minimal",
36        "libnetdutils",
37        "libtestUtil",
38    ],
39    cflags: [
40        "-fno-strict-aliasing",
41        "-Wall",
42        "-Werror",
43        "-Wno-unused-variable",
44    ],
45    data: [
46        ":kern.o",
47    ],
48
49}
50
51bpf {
52    name: "kern.o",
53    include_dirs: ["packages/modules/Connectivity/bpf_progs"],
54    srcs: ["kern.c"],
55    cflags: [
56        "-Wall",
57        "-Werror",
58    ],
59}
60
61cc_test {
62    name: "bpf_module_test",
63    defaults: ["binary_bpf_defaults"],
64    test_config: "bpf_module_test.xml",
65    test_suites: [
66        "device-tests",
67        "vts",
68    ],
69}
70
71cc_test {
72    name: "vts_test_binary_bpf_module",
73    defaults: ["binary_bpf_defaults"],
74}
75