diff options
author | Manoj Gupta <manojgupta@google.com> | 2018-05-15 11:22:47 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-16 00:41:06 -0700 |
commit | 2c3d2c17ee9b379c4e076eaa574ffb671b7e4cb5 (patch) | |
tree | 0737f6eaeb9c9e10d08af0cd03155c066dc7514f /Makefile | |
parent | 1c98ae4fddf13ff3b55b3edac682375b07fe1f58 (diff) | |
download | vboot-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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: |