From fd26444abdf967390ddfa1bf7496ae5f62daa320 Mon Sep 17 00:00:00 2001 From: Ken Chen Date: Mon, 20 Dec 2021 18:22:55 +0800 Subject: [PATCH] [NETD-BPF#21] Move a few headers to frameworks/libs/net BPF headers used by both platform and mainline modules should be in frameworks/libs/net. Bug: 202086915 Test: build and boot Test: cd packages/modules/Connectivity/netd; atest Change-Id: I5a86ccd44a673a18138201f186b104f5214fd449 --- bpf/bpf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bpf/bpf.go b/bpf/bpf.go index fa1a84d04..0eab88fa9 100644 --- a/bpf/bpf.go +++ b/bpf/bpf.go @@ -83,6 +83,7 @@ func (bpf *bpf) GenerateAndroidBuildActions(ctx android.ModuleContext) { // The architecture doesn't matter here, but asm/types.h is included by linux/types.h. "-isystem bionic/libc/kernel/uapi/asm-arm64", "-isystem bionic/libc/kernel/android/uapi", + "-I frameworks/libs/net/common/native/bpf_headers/include/bpf", // TODO(b/149785767): only give access to specific file with AID_* constants "-I system/core/libcutils/include", "-I system/bpf/progs/include",