summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-02-07 10:42:41 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-11 01:45:42 +0000
commit1bc5961c7e2d4e7e623e69f628cb0069e02b6b4d (patch)
treecc73bc7469b4c1272372bbb97fd83f526d4fb526 /Makefile.rules
parente18f1e42127a856ea6591e13ee6c26fe5781848d (diff)
downloadchrome-ec-1bc5961c7e2d4e7e623e69f628cb0069e02b6b4d.tar.gz
cleanup: add comments for MT flag use
Document why we need the MT flag as a compiler option BRANCH=none BUG=none TEST=builds Change-Id: Id6bceacc3b0af110f79d9f727ded595950fa2afb Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2044358 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 915766051a..a8357a5b93 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -57,6 +57,11 @@ endif
# the resulting ec.bin
export STATIC_VERSION
+# Commonly used compiler options used in these scripts
+#
+# -MT explicitly sets target file name in generated .d files to work around
+# a ccache issue.
+
# commands to build all targets
cmd_libec = $(LD) -r $^ -o $@.1.o ${silent_err} && \
$(OBJCOPY) --localize-hidden $@.1.o $@.2.o ${silent_err} && \
@@ -599,6 +604,8 @@ $(out)/tags: $(out)/cscope.files
npx-monitor-dir:
$(Q)mkdir -p ${out}/chip/npcx/spiflashfw
+# See "Commonly used compiler options" for more documentation
+
# TODO: optional make rules for PROJECT_EXTRA
$(npcx-monitor-fw-bin):$(npcx-monitor-fw).c npx-monitor-dir
$(if $(V),,@echo ' EXTBIN ' $(subst $(out)/,,$@) ; )