^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) perf-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-decoder.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) inat_tables_script = $(srctree)/tools/arch/x86/tools/gen-insn-attr-x86.awk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) inat_tables_maps = $(srctree)/tools/arch/x86/lib/x86-opcode-map.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) $(call rule_mkdir)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) @$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) # Busybox's diff doesn't have -I, avoid warning in the case
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/intel-pt-insn-decoder.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) $(call rule_mkdir)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) $(call if_changed_dep,cc_o_c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)util/intel-pt-decoder
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) ifeq ($(CC_NO_CLANG), 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) CFLAGS_intel-pt-insn-decoder.o += -Wno-override-init
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) endif