diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-06-30 15:04:37 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-30 22:09:56 +0000 |
commit | 848a1c43eaceb9387b7e1a65acf4ec0498328515 (patch) | |
tree | c972038d4973f45ac50d922c8d667965e61ad80e | |
parent | 73fca4c4e3d0599da9e2f52ae77acfa3af15a643 (diff) | |
download | chrome-ec-848a1c43eaceb9387b7e1a65acf4ec0498328515.tar.gz |
ec: Don't use grep to get cross compile value
Instead of extracting the host's cross compile value from HOSTCC, just
get it from HOST_CROSS_COMPILE, which is where HOSTCC gets it from in
the first place.
This allows overriding CCACHE to something other than ccache.
BRANCH=None
BUG=b:214323409
TEST=make clobber ; make -j8 test-coverage
TEST=make clobber ; make -j1024 CCACHE=/mnt/host/depot_tools/.cipd_bin/gomacc test-coverage
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I390d9dd15b5bd070030ecd8396bb8e07d23c9efd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3739304
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | Makefile.rules | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 3ea1d08df7..7af36a3afe 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -368,8 +368,7 @@ run-fuzz-test-targets=$(foreach t,$(fuzz-test-list-host),run-$(t)) $(fuzz-test-targets): TEST_FLAG=TEST_FUZZ=y TEST_ASAN=$(TEST_ASAN) \ TEST_MSAN=$(TEST_MSAN) TEST_UBSAN=$(TEST_UBSAN) \ - CROSS_COMPILE=$(shell echo $(HOSTCC) | grep -v ccache | \ - sed -e 's/[^-]*$$//') + CROSS_COMPILE=$(HOST_CROSS_COMPILE) $(fuzz-test-targets): host-%: | $(FAILED_BOARDS_DIR) @touch $(FAILED_BOARDS_DIR)/test-$* +$(call quiet,host_test,BUILD ) |