Add no-canonical-prefixes to make sure paths in .d file are relative paths

Test: Ran "m out/soong/.intermediates/system/netd/bpf_progs/clatd.o/android_common/obj/system/netd/bpf_progs/clatd.o"
and verified that the output .d file did NOT contain absolute paths.

Change-Id: I2d187638eb7a6db8de057b83312cba3116985ac8
This commit is contained in:
Kousik Kumar 2020-03-25 15:01:27 -07:00
parent 38a2e3cb92
commit fb0e251f30
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ type bpf struct {
func (bpf *bpf) GenerateAndroidBuildActions(ctx android.ModuleContext) {
cflags := []string{
"-nostdlibinc",
// Make paths in deps files relative
"-no-canonical-prefixes",
"-O2",
"-isystem bionic/libc/include",
"-isystem bionic/libc/kernel/uapi",