Masami Hiramatsu | ca0e9ba | 2009-08-13 16:34:21 -0400 | [diff] [blame^] | 1 | PHONY += posttest |
| 2 | quiet_cmd_posttest = TEST $@ |
| 3 | cmd_posttest = $(OBJDUMP) -d $(objtree)/vmlinux | awk -f $(srctree)/arch/x86/tools/distill.awk | $(obj)/test_get_len |
| 4 | |
| 5 | posttest: $(obj)/test_get_len vmlinux |
| 6 | $(call cmd,posttest) |
| 7 | |
| 8 | hostprogs-y := test_get_len |
| 9 | |
| 10 | # -I needed for generated C source and C source which in the kernel tree. |
| 11 | HOSTCFLAGS_test_get_len.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ |
| 12 | |
| 13 | # Dependancies are also needed. |
| 14 | $(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 |
| 15 | |