blob: 7b7eb5313946a6a5ae9eb6999c6a8bdccdbac707 [file] [log] [blame]
Chenbo Feng75b410b2018-10-10 15:01:19 -07001//
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
17//
18// bpfLoad binary
19//
20cc_binary {
21 name: "bpfloader",
22
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070023 defaults: ["bpf_defaults"],
Chenbo Feng75b410b2018-10-10 15:01:19 -070024 cflags: [
25 "-Wall",
26 "-Werror",
27 "-Wthread-safety",
28 ],
29 sanitize: {
30 integer_overflow: true,
31 },
32 clang: true,
33 shared_libs: [
34 "libcutils",
Chenbo Feng79a4da22018-11-08 11:32:31 -080035 "libbpf_android",
Chenbo Feng75b410b2018-10-10 15:01:19 -070036 "libbase",
37 "liblog",
38 "libnetdutils",
Joel Fernandesd76a2002018-10-16 13:19:58 -070039 "libbpf",
Chenbo Feng75b410b2018-10-10 15:01:19 -070040 ],
41 srcs: [
42 "BpfLoader.cpp",
43 ],
44
Joel Fernandes6e1341e2018-11-29 11:36:13 -080045 init_rc: ["bpfloader.rc"],
46
Chenbo Feng75b410b2018-10-10 15:01:19 -070047 required: [
Maciej Żenczykowski7a3a5ba2019-03-25 19:56:53 -070048 "clatd.o",
Chenbo Fengc1dd7642018-12-22 11:41:20 -080049 "netd.o",
Maciej Żenczykowski51b71232020-02-05 03:53:47 -080050 "offload.o",
Chenbo Feng75b410b2018-10-10 15:01:19 -070051 ],
52
53}