summaryrefslogtreecommitdiffstats
path: root/tools/objtool/arch/x86/Build
blob: 3dedb2fd8f3a0c3d7502e2536167f5e895fe1d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
objtool-y += special.o
objtool-y += decode.o
objtool-y += orc.o

inat_tables_script = ../arch/x86/tools/gen-insn-attr-x86.awk
inat_tables_maps = ../arch/x86/lib/x86-opcode-map.txt

$(OUTPUT)arch/x86/lib/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
	$(call rule_mkdir)
	$(Q)$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@

$(OUTPUT)arch/x86/decode.o: $(OUTPUT)arch/x86/lib/inat-tables.c

CFLAGS_decode.o += -I$(OUTPUT)arch/x86/lib