Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 761019cf authored by Neill Kapron's avatar Neill Kapron
Browse files

Soong: libbpf_prog: Define ENABLE_LIBBPF



This flag will be used to switch between legacy support and libbpf
support in android_bpf_defs.h.

Bug: 359646531
Test: Manual/TH
Change-Id: I954986c7bcd3d477a6a59c6632e4db6e74e58f92
Signed-off-by: default avatarNeill Kapron <nkapron@google.com>
parent 385f75bf
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -158,7 +158,8 @@ func (libbpf *libbpfProg) GenerateAndroidBuildActions(ctx android.ModuleContext)
		"-Wall",
		"-Wall",
		"-Werror",
		"-Werror",
		"-Wextra",
		"-Wextra",

		// Flag to assist with the transition to libbpf
		"-DENABLE_LIBBPF",
		"-isystem bionic/libc/include",
		"-isystem bionic/libc/include",
		"-isystem bionic/libc/kernel/uapi",
		"-isystem bionic/libc/kernel/uapi",
		// The architecture doesn't matter here, but asm/types.h is included by linux/types.h.
		// The architecture doesn't matter here, but asm/types.h is included by linux/types.h.