xref: /aosp_15_r20/system/bpfprogs/Android.bp (revision 1783903d64ec063e49f57d40fc71d726200fdde2)
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: ["system_bpfprogs_license"],
20}
21
22license {
23    name: "system_bpfprogs_license",
24    license_kinds: [
25        "SPDX-license-identifier-GPL-2.0",
26    ],
27    license_text: ["LICENSE"],
28}
29
30bpf {
31    name: "timeInState.o",
32    srcs: ["timeInState.c"],
33    include_dirs: [
34        "system/bpf/progs/include",
35        "system/bpf/include/defs",
36    ],
37}
38
39libbpf_prog {
40    name: "timeInState.bpf",
41    srcs: ["timeInState.c"],
42    header_libs: [
43        "bpf_prog_headers",
44        "libcutils_headers",
45        "android_bpf_defs",
46    ],
47}
48
49bpf {
50    name: "fuseMedia.o",
51    srcs: ["fuseMedia.c"],
52    include_dirs: [
53        "external/libfuse/include",
54        "system/bpf/include/defs",
55    ],
56}
57