diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-12-07 10:14:02 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2017-12-16 01:13:28 +0000 |
commit | 63d442ab64484a66d0738176d4887b71be200c55 (patch) | |
tree | 09b56896029fa28bf73a49efe80810daf2831188 | |
parent | 3142591036d51d9ce245cd0aa66d4902e7ac52e1 (diff) | |
download | chrome-ec-63d442ab64484a66d0738176d4887b71be200c55.tar.gz |
make: allow deps to tolerate removal of .h files
The -MP preprocessor option changes generated dependency files such
that removal of .h files does not cause make to fail dependency check.
BRANCH=none
BUG=none
TEST=verified that removal of .h file from the code and from the tree
does not cause failing builds any more.
Change-Id: If6adb6f53938878c914ca6ee6947012548bc0019
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/814876
Reviewed-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit 6464854a9698c5df6bef0bc9406213acca002a73)
Reviewed-on: https://chromium-review.googlesource.com/828692
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 1d27d3dc95..e0a7c10173 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -71,7 +71,7 @@ cmd_smap = $(NM) $< | sort > $@ cmd_elf = $(CC) $(objs) $(libsharedobjs_elf-y) $(LDFLAGS) \ -o $@ -Wl,-T,$< -Wl,-Map,$(patsubst %.elf,%.map,$@) cmd_exe = $(CC) $(ro-objs) $(HOST_TEST_LDFLAGS) -o $@ -cmd_c_to_o = $(CC) $(CFLAGS) -MMD -MF $@.d -c $< -o $(@D)/$(@F) +cmd_c_to_o = $(CC) $(CFLAGS) -MMD -MP -MF $@.d -c $< -o $(@D)/$(@F) cmd_c_to_build = $(BUILDCC) $(BUILD_CFLAGS) \ $(sort $(foreach c,$($(*F)-objs),util/$(c:%.o=%.c)) $*.c) \ $(BUILD_LDFLAGS) \ |