flashrom: ensure flashrom symbols are not loaded if !USE_FLASHROM

The linking process during the installation phase of this package
breaks if you compile with make USE_FLASHROM=0. A new conditional has
been added to the make file that prevents utility/crossystem from
compiling if USE_FLASHROM is either not set or set to the number 0.

BUG=b/256682063
TEST=presubmit
RELEASE_NOTE=none
BRANCH=none

Change-Id: Id1b851bc78d8db1878596b7f47fe80ef0719ae26
Signed-off-by: Nobel Barakat nobelbarakat@google.com
Reviewed-on: https://cos-review.googlesource.com/c/third_party/platform/vboot_reference/+/40328
Reviewed-by: Oleksandr Tymoshenko <ovt@google.com>
Tested-by: Nobel Barakat <nobelbarakat@google.com>
diff --git a/Makefile b/Makefile
index 6340fb2..4a07128 100644
--- a/Makefile
+++ b/Makefile
@@ -601,10 +601,13 @@
 	utility/signature_digest_utility \
 	utility/verify_data
 UTIL_BIN_NAMES_BOARD = \
-	utility/crossystem \
 	utility/dumpRSAPublicKey \
 	utility/tpmc
 
+ifneq ($(filter-out 0,${USE_FLASHROM}),)
+UTIL_BIN_NAMES_BOARD += utility/crossystem
+endif
+
 UTIL_SCRIPTS_SDK = $(addprefix ${BUILD}/,${UTIL_SCRIPT_NAMES_SDK})
 UTIL_SCRIPTS_BOARD = $(addprefix ${BUILD}/,${UTIL_SCRIPT_NAMES_BOARD})
 UTIL_BINS_SDK = $(addprefix ${BUILD}/,${UTIL_BIN_NAMES_SDK})