aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/tools/Makefile
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2009-11-20 12:13:14 -0500
committerH. Peter Anvin <[email protected]>2009-11-20 23:01:04 -0800
commit6f5f67267dc4faecd9cba63894de92ca92a608b8 (patch)
tree2ebee0e99341c812a55947cf0a611b4d0fef6d68 /arch/x86/tools/Makefile
parent80509e27e40d7554e576405ed9f5b7966c567112 (diff)
x86: insn decoder test checks objdump version
Check objdump version before using it for insn decoder build test, because some older objdump can't decode AVX code correctly. Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Jim Keniston <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'arch/x86/tools/Makefile')
-rw-r--r--arch/x86/tools/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/tools/Makefile b/arch/x86/tools/Makefile
index c80b0792cd83..f82082677337 100644
--- a/arch/x86/tools/Makefile
+++ b/arch/x86/tools/Makefile
@@ -12,8 +12,11 @@ else
posttest_64bit = -n
endif
+distill_awk = $(srctree)/arch/x86/tools/distill.awk
+chkobjdump = $(srctree)/arch/x86/tools/chkobjdump.awk
+
quiet_cmd_posttest = TEST $@
- cmd_posttest = $(OBJDUMP) -d -j .text $(objtree)/vmlinux | $(AWK) -f $(srctree)/arch/x86/tools/distill.awk | $(obj)/test_get_len $(posttest_64bit) $(posttest_verbose)
+ cmd_posttest = ($(OBJDUMP) -v | $(AWK) -f $(chkobjdump)) || $(OBJDUMP) -d -j .text $(objtree)/vmlinux | $(AWK) -f $(distill_awk) | $(obj)/test_get_len $(posttest_64bit) $(posttest_verbose)
posttest: $(obj)/test_get_len vmlinux
$(call cmd,posttest)