objtool: Avoid checking code drift on busybox's diff
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 1a4bf28573c82b4cbeb4e8d3326b24a93ed64c8e Gitweb: http://git.kernel.org/tip/1a4bf28573c82b4cbeb4e8d3326b24a93ed64c8e Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 13 Jul 2016 15:33:54 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 13 Jul 2016 23:08:54 -0300
objtool: Avoid checking code drift on busybox's diff
That doesn't have -I to match lines.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/objtool/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
tools/objtool/Makefile +4 -1
@@ -41,8 +41,11 @@ include $(srctree)/tools/build/Makefile.include $(OBJTOOL_IN): fixdep FORCE @$(MAKE) $(build)=objtool +# Busybox's diff doesn't have -I, avoid warning in that case +# $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) - @(test -d ../../kernel -a -d ../../tools -a -d ../objtool && (( \ + @(diff -I 2>&1 | grep -q 'option requires an argument' && \ + test -d ../../kernel -a -d ../../tools -a -d ../objtool && (( \ diff -I'^#include' arch/x86/insn/insn.c ../../arch/x86/lib/insn.c >/dev/null && \ diff -I'^#include' arch/x86/insn/inat.c ../../arch/x86/lib/inat.c >/dev/null && \ diff arch/x86/insn/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >/dev/null && \