1583d0e90SSam Ravnborg# 2583d0e90SSam Ravnborg# Makefile for x86 specific library files. 3583d0e90SSam Ravnborg# 4583d0e90SSam Ravnborg 5eb13296cSMasami Hiramatsuinat_tables_script = $(srctree)/arch/x86/tools/gen-insn-attr-x86.awk 6eb13296cSMasami Hiramatsuinat_tables_maps = $(srctree)/arch/x86/lib/x86-opcode-map.txt 7eb13296cSMasami Hiramatsuquiet_cmd_inat_tables = GEN $@ 8eb13296cSMasami Hiramatsu cmd_inat_tables = $(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ 9eb13296cSMasami Hiramatsu 10eb13296cSMasami Hiramatsu$(obj)/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) 11eb13296cSMasami Hiramatsu $(call cmd,inat_tables) 12eb13296cSMasami Hiramatsu 13eb13296cSMasami Hiramatsu$(obj)/inat.o: $(obj)/inat-tables.c 14eb13296cSMasami Hiramatsu 15eb13296cSMasami Hiramatsuclean-files := inat-tables.c 16eb13296cSMasami Hiramatsu 176bc1096dSBorislav Petkovobj-$(CONFIG_SMP) := msr.o 18583d0e90SSam Ravnborg 19f0fbf0abSGlauber Costalib-y := delay.o 2081d68a96SSteven Rostedtlib-y += thunk_$(BITS).o 215cbbc3b1SGlauber Costalib-y += usercopy_$(BITS).o getuser.o putuser.o 22583d0e90SSam Ravnborglib-y += memcpy_$(BITS).o 23cbe5c34cSOGAWA Hirofumilib-$(CONFIG_KPROBES) += insn.o inat.o 24583d0e90SSam Ravnborg 25b19ae399SH. Peter Anvinobj-y += msr-reg.o msr-reg-export.o 2644f0257fSThomas Gleixner 2744f0257fSThomas Gleixnerifeq ($(CONFIG_X86_32),y) 281fde902dSIngo Molnar obj-y += atomic64_32.o 29583d0e90SSam Ravnborg lib-y += checksum_32.o 30583d0e90SSam Ravnborg lib-y += strstr_32.o 316fd92b63SAlexander van Heukelum lib-y += semaphore_32.o string_32.o 3204edbdefSEric Dumazetifneq ($(CONFIG_X86_CMPXCHG64),y) 3304edbdefSEric Dumazet lib-y += cmpxchg8b_emu.o 3404edbdefSEric Dumazetendif 35583d0e90SSam Ravnborg lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o 3644f0257fSThomas Gleixnerelse 37583d0e90SSam Ravnborg obj-y += io_64.o iomap_copy_64.o 38583d0e90SSam Ravnborg lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o 39583d0e90SSam Ravnborg lib-y += thunk_64.o clear_page_64.o copy_page_64.o 40583d0e90SSam Ravnborg lib-y += memmove_64.o memset_64.o 41583d0e90SSam Ravnborg lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o 4244f0257fSThomas Gleixnerendif 43