From 2c3d2c17ee9b379c4e076eaa574ffb671b7e4cb5 Mon Sep 17 00:00:00 2001 From: Manoj Gupta Date: Tue, 15 May 2018 11:22:47 -0700 Subject: [PATCH] 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 Tested-by: Manoj Gupta Reviewed-by: Randall Spangler --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 995850e698..0cd13e274d 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: