summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAllen Webb <allenwebb@google.com>2018-12-10 15:10:19 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-19 01:12:52 -0800
commita6f0a7e96c6fe9da398f7db5004d7d2b9c00e3e3 (patch)
tree85d0ed1af00b07b0f412b58cd588e70188c2ed7a /Makefile
parent4790392940e3b70a843274e1acb952e8f22825f6 (diff)
downloadchrome-ec-a6f0a7e96c6fe9da398f7db5004d7d2b9c00e3e3.tar.gz
Makefile.rules: Add buildfuzztests to buildall.
This incorporates the fuzz targets into buildall and adds a quick sanity check to each fuzz target to make sure it exits successfully for an empty input. This adds roughly 5.88 seconds to "make -j buildall" (This includes an addtionally target that will be enabled in a later CL). time make -j buildall # BEFORE real 1m19.519s user 23m9.220s sys 5m1.690s time make -j buildall # AFTER real 1m25.399s user 23m35.753s sys 5m12.609s BRANCH=None BUG=None TEST=make -j buildall Change-Id: Ib77a57297ee896569c509d0c8c998552d2a3a76c Signed-off-by: Allen Webb <allenwebb@google.com> Reviewed-on: https://chromium-review.googlesource.com/1370934 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dabe3e9b20..6f9984cf8a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,14 @@
# Embedded Controller firmware build system
#
+# Allow for masking of some targets based on the build architecture. When
+# building using a portage package (such as chromeos-ec), this variable will
+# already be set. To support the typical developer workflow a default value is
+# provided matching the typical architecture of developer workstations. Note
+# that amd64 represents the entire x84_64 architecture including intel CPUs.
+# This is used to exclude build targets that depend on sanitizers such as
+# fuzzers on architectures that don't support sanitizers yet (e.g. arm).
+ARCH?=amd64
BOARD ?= bds
# Directory where the board is configured (includes /$(BOARD) at the end)