summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-06-21 12:37:01 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-06-21 17:14:33 -0700
commit58c0727901aae21c496056a5eccaa27c693510ef (patch)
tree91a1fd3877493c0301f319b3fdb82b03ddaf54cf
parentf7d6d881998706f02494d1c46d0d09d26a5f5e10 (diff)
downloadchrome-ec-58c0727901aae21c496056a5eccaa27c693510ef.tar.gz
build: Skip cr50 board in `make buildall` if private folder not present
BUG=chromium:621993 BRANCH=None TEST=`make buildall -j` from public checkout succeeds. Also verify cr50 still built from private checkout. Change-Id: I982806e282146aab76154b51c366226d3d1aed14 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/354540 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--Makefile.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9a10f23118..52b215f337 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -14,6 +14,10 @@ host-srcs := $(foreach u,$(host-util-bin),$(sort $($(u)-objs:%.o=util/%.c) util/
# Don't do a build test on the following boards:
skip_boards = OWNERS host it83xx_evb
+# Skip building cr50 if private folder is not present
+ifeq ("$(wildcard ./private-cr51)","")
+skip_boards += cr50
+endif
boards := $(filter-out $(skip_boards),$(notdir $(wildcard board/* private*/board/*)))
# Create output directories if necessary