mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Masahiro Yamada](/assets/img/avatar_default.png)
When we build an already built kernel again, arch/x86/syscalls/Makefile and arch/x86/tools/Makefile emits "Nothing to be done for ..." messages. Here is the command log: $ make defconfig [ snip ] $ make [ snip ] $ make make[1]: Nothing to be done for `all'. <----- make[1]: Nothing to be done for `relocs'. <----- CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h Besides not emitting those, "all" and "relocs" should be added to PHONY as well. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Peter Foley <pefoley2@pefoley.com> Acked-by: Michal Marek <mmarek@suse.cz> Link: http://lkml.kernel.org/r/1397093742-11144-1-git-send-email-yamada.m@jp.panasonic.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
45 lines
1.8 KiB
Makefile
45 lines
1.8 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)
|
|
|
|
quiet_cmd_sanitytest = TEST $@
|
|
cmd_sanitytest = $(obj)/insn_sanity $(posttest_64bit) -m 1000000
|
|
|
|
posttest: $(obj)/test_get_len vmlinux $(obj)/insn_sanity
|
|
$(call cmd,posttest)
|
|
$(call cmd,sanitytest)
|
|
|
|
hostprogs-y += test_get_len insn_sanity
|
|
|
|
# -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/uapi/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/uapi/
|
|
|
|
HOSTCFLAGS_insn_sanity.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
|
|
|
|
$(obj)/insn_sanity.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
|
|
|
|
HOST_EXTRACFLAGS += -I$(srctree)/tools/include
|
|
hostprogs-y += relocs
|
|
relocs-objs := relocs_32.o relocs_64.o relocs_common.o
|
|
PHONY += relocs
|
|
relocs: $(obj)/relocs
|
|
@:
|