xref: /aosp_15_r20/system/bpfprogs/Android.bp (revision 1783903d64ec063e49f57d40fc71d726200fdde2)
1*1783903dSAndroid Build Coastguard Worker//
2*1783903dSAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
3*1783903dSAndroid Build Coastguard Worker//
4*1783903dSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*1783903dSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*1783903dSAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*1783903dSAndroid Build Coastguard Worker//
8*1783903dSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*1783903dSAndroid Build Coastguard Worker//
10*1783903dSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*1783903dSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*1783903dSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*1783903dSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*1783903dSAndroid Build Coastguard Worker// limitations under the License.
15*1783903dSAndroid Build Coastguard Worker//
16*1783903dSAndroid Build Coastguard Worker
17*1783903dSAndroid Build Coastguard Workerpackage {
18*1783903dSAndroid Build Coastguard Worker    default_team: "trendy_team_fwk_core_networking",
19*1783903dSAndroid Build Coastguard Worker    default_applicable_licenses: ["system_bpfprogs_license"],
20*1783903dSAndroid Build Coastguard Worker}
21*1783903dSAndroid Build Coastguard Worker
22*1783903dSAndroid Build Coastguard Workerlicense {
23*1783903dSAndroid Build Coastguard Worker    name: "system_bpfprogs_license",
24*1783903dSAndroid Build Coastguard Worker    license_kinds: [
25*1783903dSAndroid Build Coastguard Worker        "SPDX-license-identifier-GPL-2.0",
26*1783903dSAndroid Build Coastguard Worker    ],
27*1783903dSAndroid Build Coastguard Worker    license_text: ["LICENSE"],
28*1783903dSAndroid Build Coastguard Worker}
29*1783903dSAndroid Build Coastguard Worker
30*1783903dSAndroid Build Coastguard Workerbpf {
31*1783903dSAndroid Build Coastguard Worker    name: "timeInState.o",
32*1783903dSAndroid Build Coastguard Worker    srcs: ["timeInState.c"],
33*1783903dSAndroid Build Coastguard Worker    include_dirs: [
34*1783903dSAndroid Build Coastguard Worker        "system/bpf/progs/include",
35*1783903dSAndroid Build Coastguard Worker        "system/bpf/include/defs",
36*1783903dSAndroid Build Coastguard Worker    ],
37*1783903dSAndroid Build Coastguard Worker}
38*1783903dSAndroid Build Coastguard Worker
39*1783903dSAndroid Build Coastguard Workerlibbpf_prog {
40*1783903dSAndroid Build Coastguard Worker    name: "timeInState.bpf",
41*1783903dSAndroid Build Coastguard Worker    srcs: ["timeInState.c"],
42*1783903dSAndroid Build Coastguard Worker    header_libs: [
43*1783903dSAndroid Build Coastguard Worker        "bpf_prog_headers",
44*1783903dSAndroid Build Coastguard Worker        "libcutils_headers",
45*1783903dSAndroid Build Coastguard Worker        "android_bpf_defs",
46*1783903dSAndroid Build Coastguard Worker    ],
47*1783903dSAndroid Build Coastguard Worker}
48*1783903dSAndroid Build Coastguard Worker
49*1783903dSAndroid Build Coastguard Workerbpf {
50*1783903dSAndroid Build Coastguard Worker    name: "fuseMedia.o",
51*1783903dSAndroid Build Coastguard Worker    srcs: ["fuseMedia.c"],
52*1783903dSAndroid Build Coastguard Worker    include_dirs: [
53*1783903dSAndroid Build Coastguard Worker        "external/libfuse/include",
54*1783903dSAndroid Build Coastguard Worker        "system/bpf/include/defs",
55*1783903dSAndroid Build Coastguard Worker    ],
56*1783903dSAndroid Build Coastguard Worker}
57