aboutsummaryrefslogtreecommitdiffstats
path: root/bpf
diff options
context:
space:
mode:
authorJoel Fernandes (Google) <joel@joelfernandes.org>2019-02-12 12:51:13 -0500
committerJoel Fernandes <joelaf@google.com>2019-02-12 13:04:01 -0500
commita2fd4866cfcc0607d20742584c25c4eb5feb4b79 (patch)
tree2bd15cd8c5f9c58f4d9bad290ca84ce7d0324ecc /bpf
parent93c3f5368de394657b48360590f090719d01c2ec (diff)
downloadbuild_soong-a2fd4866cfcc0607d20742584c25c4eb5feb4b79.tar.gz
build_soong-a2fd4866cfcc0607d20742584c25c4eb5feb4b79.tar.bz2
build_soong-a2fd4866cfcc0607d20742584c25c4eb5feb4b79.zip
Add common BPF helper to include path
All BPF programs need helper header files. These end up being duplicated. Let us add a path to the common BPF helper to the search path so that it can be used across projects. No functional change to the final system image, only a build change. Bug: 122665156 Change-Id: Ieee838df98258213efa24d74a12e069f056c66c1 Signed-off-by: Joel Fernandes <joelaf@google.com>
Diffstat (limited to 'bpf')
-rw-r--r--bpf/bpf.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bpf/bpf.go b/bpf/bpf.go
index 3ef35b7a..4b0d510c 100644
--- a/bpf/bpf.go
+++ b/bpf/bpf.go
@@ -66,6 +66,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 system/bpf/progs/include",
"-I " + ctx.ModuleDir(),
}