summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-05-01 14:21:16 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-05-02 17:14:32 +0000
commit0f01a40c86faaba64ddc1f49fda705f10800b7f4 (patch)
treec34a219723e7c287744fddb0a142f8468c50d8eb /Makefile.rules
parent3000fa71a6a1987ab8b069d50dee402f95006989 (diff)
downloadchrome-ec-0f01a40c86faaba64ddc1f49fda705f10800b7f4.tar.gz
test: build target test only when the full runtime is available
For targets not using the common runtime functions, the current test content does not make much sense and fails to build properly : de-activate the tests build in that case. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:28480 TEST=USE=usbpd emerge-samus chromeos-ec Change-Id: Ic6477861b5a86916f29a9f6bb70ed0def3661886 Reviewed-on: https://chromium-review.googlesource.com/197883 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 0d3e145a46..2ebff88979 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -82,12 +82,14 @@ utils: $(build-utils) $(host-utils)
test-targets=$(foreach t,$(test-list-y),test-$(t))
.PHONY: $(test-targets)
+ifeq "$(CONFIG_COMMON_RUNTIME)" "y"
$(test-targets): test-%:
@set -e ; \
echo " BUILD $(out)/$*" ; \
$(MAKE) --no-print-directory BOARD=$(BOARD) PROJECT=$* \
V=$(V) out=$(out)/$* TEST_BUILD=y; \
cp $(out)/$*/$*.bin $(out)/test-$*.bin
+endif
tests: $(test-targets)