summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-07-18 11:07:34 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-07-18 06:18:12 -0700
commitfa41f632226147183fb7a45e13b4a21b3b6b3b94 (patch)
tree7be0261d91de5b54ffdea0a5063cfe8e50037199
parent62775a3981ed7f57b5b49b31643db42eb944575c (diff)
downloadchrome-ec-fa41f632226147183fb7a45e13b4a21b3b6b3b94.tar.gz
Makefiles.rules: Silence cmp
When building with stdout redirected to /dev/null: make buildall -j >/dev/null One would still see "error" message like: cmp: build/hammer/ec_version.h: No such file or directory BRANCH=none BUG=none TEST=make buildall -j > /dev/null is quiet again. Change-Id: I3ee9d090d3d46a70a096db0bebbfecaf293dca6d Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1141448 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index cf7abab0c4..8b9c998338 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -85,7 +85,7 @@ cmd_cxx_to_host = $(HOSTCXX) -std=c++0x $(COMMON_WARN) $(HOST_CXXFLAGS)\
-I ./$($(notdir $@)_ROOT) -o $@ $(filter %.cc,$^) $($(notdir $@)_LIBS)
cmd_host_test = ./util/run_host_test $* $(silent)
# generate new version.h, compare if it changed and replace if so
-cmd_version = ./util/getversion.sh > $@.tmp && cmp $@.tmp $@ >/dev/null || mv $@.tmp $@; rm -f $@.tmp
+cmd_version = ./util/getversion.sh > $@.tmp && cmp -s $@.tmp $@ || mv $@.tmp $@; rm -f $@.tmp
cmd_vif = $(out)/util/genvif -b $(BOARD) -o $(out)
cmd_mv_from_tmp = mv $(out)/$*.bin.tmp $(out)/$*.bin
cmd_extractrw-y = dd if=$(out)/$(PROJECT).bin.tmp of=$(out)/$(PROJECT).RW.bin \