1 # SPDX-License-Identifier: GPL-2.0 2 PHONY += posttest 3 4 ifneq ($(findstring 1, $(KBUILD_VERBOSE)),) 5 posttest_verbose = -v 6 else 7 posttest_verbose = 8 endif 9 10 ifeq ($(CONFIG_64BIT),y) 11 posttest_64bit = -y 12 else 13 posttest_64bit = -n 14 endif 15 16 reformatter = $(srctree)/arch/x86/tools/objdum 17 chkobjdump = $(srctree)/arch/x86/tools/chkobjd 18 19 quiet_cmd_posttest = TEST $@ 20 cmd_posttest = $(OBJDUMP) -d -j .text $( 21 22 quiet_cmd_sanitytest = TEST $@ 23 cmd_sanitytest = $(obj)/insn_sanity $(po 24 25 posttest: $(obj)/insn_decoder_test vmlinux $(o 26 $(call cmd,posttest) 27 $(call cmd,sanitytest) 28 29 hostprogs += insn_decoder_test insn_sanity 30 31 # -I needed for generated C source and C sourc 32 HOSTCFLAGS_insn_decoder_test.o := -Wall -I$(sr 33 34 HOSTCFLAGS_insn_sanity.o := -Wall -I$(srctree) 35 36 # Dependencies are also needed. 37 $(obj)/insn_decoder_test.o: $(srctree)/tools/a 38 39 $(obj)/insn_sanity.o: $(srctree)/tools/arch/x8 40 41 HOST_EXTRACFLAGS += -I$(srctree)/tools/include 42 hostprogs += relocs 43 relocs-objs := relocs_32.o relocs_64.o rel 44 PHONY += relocs 45 relocs: $(obj)/relocs 46 @:
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.