Don't use relative paths in CHQTS makefiles am: 403247fb78

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/chre/+/15676740

Change-Id: Ib217dae5bc8c5405567ecef7c99fd03896c99bcb
diff --git a/apps/test/chqts/build/shared_make.mk b/apps/test/chqts/build/shared_make.mk
index 21611d7..661f05e 100644
--- a/apps/test/chqts/build/shared_make.mk
+++ b/apps/test/chqts/build/shared_make.mk
@@ -11,11 +11,7 @@
 endif
 
 NANOAPP_DIR_NAME ?= $(NANOAPP_NAME)
-
-# This path is actually relative to one level deeper as this file
-# gets included from Makefile of each test subdirectory
-NANOAPP_SRC_PATH = ../../src
-CHRE_ROOT_PATH = ../../../..
+NANOAPP_SRC_PATH = $(CHRE_PREFIX)/apps/test/chqts/src
 
 SHARED_LIB_FILES = abort.cc \
   chunk_allocator.cc \
@@ -38,7 +34,7 @@
   -D__BIG_ENDIAN=2
 
 COMMON_CFLAGS += -I$(NANOAPP_SRC_PATH)
-COMMON_CFLAGS += -I$(CHRE_ROOT_PATH)/util/include
+COMMON_CFLAGS += -I$(CHRE_PREFIX)/util/include
 
 OPT_LEVEL=2