diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2018-08-09 22:40:23 +0530 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2018-08-11 14:31:44 -0700 |
commit | 03441aa9b408b3d6eb01e879331182db2590a1d9 (patch) | |
tree | 2b470b7ea3b15c64314ff8cb5eaa34252606d022 | |
parent | 69a33ede94a200a712906f8e24697d1e207830ec (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.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 \ |