summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2018-05-15 11:22:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-16 00:41:06 -0700
commit2c3d2c17ee9b379c4e076eaa574ffb671b7e4cb5 (patch)
tree0737f6eaeb9c9e10d08af0cd03155c066dc7514f
parent1c98ae4fddf13ff3b55b3edac682375b07fe1f58 (diff)
downloadvboot-2c3d2c17ee9b379c4e076eaa574ffb671b7e4cb5.tar.gz
vboot_reference: Build host tools conditionally.
Some of the tools and utilities in vboot_reference do not build with sanitizers enabled. To avoid this, do not build them when NO_BUILD_TOOLS is defined. CQ-DEPEND=CL:1060156 BUG=chromium:841588 TEST=USE="fuzzer" emerge-amd64-generic vboot_reference does not build host tools TEST=emerge-falco vboot_reference builds all tools. Change-Id: If238c98d4058db20765731237153bc6969a06375 Reviewed-on: https://chromium-review.googlesource.com/1060154 Commit-Ready: Manoj Gupta <manojgupta@chromium.org> Tested-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 995850e6..0cd13e27 100644
--- a/Makefile
+++ b/Makefile
@@ -840,8 +840,13 @@ _dir_create := $(foreach d, \
$(shell [ -d ${BUILD}/${d} ] || mkdir -p ${BUILD}/${d}))
# Host targets
+
+.PHONY: host_tools
+host_tools: utils futil tests
+
.PHONY: host_stuff
-host_stuff: utillib hostlib cgpt utils futil tests
+host_stuff: utillib hostlib cgpt \
+ $(if ${NO_BUILD_TOOLS},,host_tools)
.PHONY: clean
clean: