Skip to content

Commit c8a3f7d

Browse files
committed
perf intel-pt-decoder: Avoid checking code drift on busibox's diff
That doesn't have -I to match lines. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-7nz9hnbk7a9p91ou927ye5yh@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 3c7752f commit c8a3f7d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • tools/perf/util/intel-pt-decoder

‎tools/perf/util/intel-pt-decoder/Build‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_table
77
$(call rule_mkdir)
88
@$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@
99

10+
# Busybox's diff doesn't have -I, avoid warning in the case
11+
1012
$(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/intel-pt-insn-decoder.c util/intel-pt-decoder/inat.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c
11-
@(test -d ../../kernel -a -d ../../tools -a -d ../perf && (( \
13+
@(diff -I 2>&1 | grep -q 'option requires an argument' && \
14+
test -d ../../kernel -a -d ../../tools -a -d ../perf && (( \
1215
diff -B -I'^#include' util/intel-pt-decoder/insn.c ../../arch/x86/lib/insn.c >/dev/null && \
1316
diff -B -I'^#include' util/intel-pt-decoder/inat.c ../../arch/x86/lib/inat.c >/dev/null && \
1417
diff -B util/intel-pt-decoder/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >/dev/null && \

0 commit comments

Comments
 (0)