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>
diff --git a/Test.mk b/Test.mk
index fb7d41a..44f0ece 100644
--- a/Test.mk
+++ b/Test.mk
@@ -32,7 +32,8 @@
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 \