1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 PHONY += posttest !! 2 hostprogs := elf-entry 3 !! 3 PHONY += elf-entry 4 ifneq ($(findstring 1, $(KBUILD_VERBOSE)),) !! 4 elf-entry: $(obj)/elf-entry 5 posttest_verbose = -v !! 5 @: 6 else !! 6 7 posttest_verbose = !! 7 hostprogs += loongson3-llsc-check 8 endif !! 8 PHONY += loongson3-llsc-check 9 !! 9 loongson3-llsc-check: $(obj)/loongson3-llsc-check 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 @: 10 @:
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.