mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
6f5f67267d
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 <mhiramat@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Jim Keniston <jkenisto@us.ibm.com> LKML-Reference: <20091120171314.6715.30390.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
31 lines
1.1 KiB
Makefile
31 lines
1.1 KiB
Makefile
PHONY += posttest
|
|
|
|
ifeq ($(KBUILD_VERBOSE),1)
|
|
posttest_verbose = -v
|
|
else
|
|
posttest_verbose =
|
|
endif
|
|
|
|
ifeq ($(CONFIG_64BIT),y)
|
|
posttest_64bit = -y
|
|
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) -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)
|
|
|
|
hostprogs-y := test_get_len
|
|
|
|
# -I needed for generated C source and C source which in the kernel tree.
|
|
HOSTCFLAGS_test_get_len.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/
|
|
|
|
# Dependencies are also needed.
|
|
$(obj)/test_get_len.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c
|
|
|