Masami Hiramatsu | ca0e9ba | 2009-08-13 16:34:21 -0400 | [diff] [blame] | 1 | PHONY += posttest |
Masami Hiramatsu | d65ff75 | 2009-11-16 18:06:18 -0500 | [diff] [blame^] | 2 | |
| 3 | ifeq ($(KBUILD_VERBOSE),1) |
| 4 | postest_verbose = -v |
| 5 | else |
| 6 | postest_verbose = |
| 7 | endif |
| 8 | |
Masami Hiramatsu | ca0e9ba | 2009-08-13 16:34:21 -0400 | [diff] [blame] | 9 | quiet_cmd_posttest = TEST $@ |
Masami Hiramatsu | d65ff75 | 2009-11-16 18:06:18 -0500 | [diff] [blame^] | 10 | cmd_posttest = $(OBJDUMP) -d -j .text $(objtree)/vmlinux | awk -f $(srctree)/arch/x86/tools/distill.awk | $(obj)/test_get_len -$(CONFIG_64BIT) $(posttest_verbose) |
Masami Hiramatsu | ca0e9ba | 2009-08-13 16:34:21 -0400 | [diff] [blame] | 11 | |
| 12 | posttest: $(obj)/test_get_len vmlinux |
| 13 | $(call cmd,posttest) |
| 14 | |
| 15 | hostprogs-y := test_get_len |
| 16 | |
| 17 | # -I needed for generated C source and C source which in the kernel tree. |
Ingo Molnar | 9bf4e7f | 2009-10-21 14:39:51 +0200 | [diff] [blame] | 18 | HOSTCFLAGS_test_get_len.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/ |
Masami Hiramatsu | ca0e9ba | 2009-08-13 16:34:21 -0400 | [diff] [blame] | 19 | |
Ingo Molnar | 9bf4e7f | 2009-10-21 14:39:51 +0200 | [diff] [blame] | 20 | # Dependencies are also needed. |
Masami Hiramatsu | ca0e9ba | 2009-08-13 16:34:21 -0400 | [diff] [blame] | 21 | $(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 |
| 22 | |