2019-02-13 20:32:39 +08:00
|
|
|
perf-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-decoder.o
|
2015-08-13 15:14:55 +08:00
|
|
|
|
2019-08-30 06:41:21 +08:00
|
|
|
inat_tables_script = $(srctree)/tools/arch/x86/tools/gen-insn-attr-x86.awk
|
|
|
|
inat_tables_maps = $(srctree)/tools/arch/x86/lib/x86-opcode-map.txt
|
2015-08-13 15:14:55 +08:00
|
|
|
|
|
|
|
$(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
|
2015-09-01 13:56:45 +08:00
|
|
|
$(call rule_mkdir)
|
2015-08-13 15:14:55 +08:00
|
|
|
@$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@
|
|
|
|
|
2016-07-12 23:16:35 +08:00
|
|
|
# Busybox's diff doesn't have -I, avoid warning in the case
|
|
|
|
|
2019-08-30 06:41:20 +08:00
|
|
|
$(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
|
2015-09-02 20:15:25 +08:00
|
|
|
$(call rule_mkdir)
|
|
|
|
$(call if_changed_dep,cc_o_c)
|
2015-08-13 15:14:55 +08:00
|
|
|
|
2017-02-15 03:18:02 +08:00
|
|
|
CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)util/intel-pt-decoder
|
|
|
|
|
2017-08-27 15:54:40 +08:00
|
|
|
ifeq ($(CC_NO_CLANG), 1)
|
2017-02-15 03:18:02 +08:00
|
|
|
CFLAGS_intel-pt-insn-decoder.o += -Wno-override-init
|
|
|
|
endif
|