aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@linaro.org>2018-08-09 22:40:23 +0530
committerLisa Nguyen <lisa.nguyen@linaro.org>2018-08-11 14:32:14 -0700
commitc0a72abc630bc4a4f018d93c1c050446f0ecff06 (patch)
tree3df542fb01f4db6a10540d8fae7386309950b75c
parent88e1e9a1ba51bace11a72c1a5bdd22269c2b8b87 (diff)
PMQA: Makefile: Support cross-compilation
Don't use gcc directly, use the CC variable to allow passing something like CC=aarch64-linux-gnu-gcc in order to cross compile to utils. This allows host-side compilation and bundling of the tools into a small ramdisk on the target. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--Test.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Test.mk b/Test.mk
index fb7d41a..44f0ece 100644
--- a/Test.mk
+++ b/Test.mk
@@ -32,7 +32,8 @@ EXEC=$(SRC:%.c=%)
check: build_utils run_tests
build_utils:
- gcc ../utils/uevent_reader.c -o ../utils/uevent_reader
+ $(CC) ../utils/uevent_reader.c -o ../utils/uevent_reader
+ $(CC) ../utils/cpucycle.c -o ../utils/cpucycle
SANITY_STATUS:= $(shell if test $(SNT) && test -f $(SNT); then \
./$(SNT); if test "$$?" -eq 0; then echo 0; else \