Use $(location) to find path to tools am: 681a6f9804 am: d2a01e37a4

Original change: https://android-review.googlesource.com/c/device/generic/opengl-transport/+/1685106

Change-Id: Id00fa1c8b838403acb272d633679b7304fe4f07d
diff --git a/host/libs/virglrenderer/Android.bp b/host/libs/virglrenderer/Android.bp
index 3791f7a..c05b1e5 100644
--- a/host/libs/virglrenderer/Android.bp
+++ b/host/libs/virglrenderer/Android.bp
@@ -102,7 +102,7 @@
 genrule {
   name: "gles1_core_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/gles1_core.entries"],
   out: ["gles1_core_functions.h"],
 }
@@ -110,7 +110,7 @@
 genrule {
   name: "gles1_extensions_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/gles1_extensions.entries"],
   out: ["gles1_extensions_functions.h"],
 }
@@ -118,7 +118,7 @@
 genrule {
   name: "egl_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/egl.entries"],
   out: ["egl_functions.h"],
 }
@@ -126,7 +126,7 @@
 genrule {
   name: "gles3_only_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/gles3_only.entries"],
   out: ["gles3_only_functions.h"],
 }
@@ -134,7 +134,7 @@
 genrule {
   name: "gles31_only_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/gles31_only.entries"],
   out: ["gles31_only_functions.h"],
 }
@@ -142,7 +142,7 @@
 genrule {
   name: "gles2_extensions_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/gles2_extensions.entries"],
   out: ["gles2_extensions_functions.h"],
 }
@@ -150,7 +150,7 @@
 genrule {
   name: "egl_extensions_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/egl_extensions.entries"],
   out: ["egl_extensions_functions.h"],
 }
@@ -158,7 +158,7 @@
 genrule {
   name: "gles2_core_functions_hdr",
   tool_files: ["gen_entries.py"],
-  cmd: "python device/generic/opengl-transport/host/libs/virglrenderer/gen_entries.py --mode=funcargs $(in) --output $(out)",
+  cmd: "python $(location gen_entries.py) --mode=funcargs $(in) --output $(out)",
   srcs: ["OpenGLESDispatch/gles2_core.entries"],
   out: ["gles2_core_functions.h"],
 }