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:31:44 -0700
commit03441aa9b408b3d6eb01e879331182db2590a1d9 (patch)
tree2b470b7ea3b15c64314ff8cb5eaa34252606d022
parent69a33ede94a200a712906f8e24697d1e207830ec (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 \