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:32:14 -0700 |
commit | c0a72abc630bc4a4f018d93c1c050446f0ecff06 (patch) | |
tree | 3df542fb01f4db6a10540d8fae7386309950b75c | |
parent | 88e1e9a1ba51bace11a72c1a5bdd22269c2b8b87 (diff) | |
download | pm-qa-c0a72abc630bc4a4f018d93c1c050446f0ecff06.tar.gz |
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 \ |