From 0f01a40c86faaba64ddc1f49fda705f10800b7f4 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 1 May 2014 14:21:16 -0700 Subject: 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 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 Reviewed-by: Vic Yang Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin --- Makefile.rules | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.1