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 $@ 8d32ba455SMasami Hiramatsu cmd_inat_tables = $(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@ 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 17a7b480e7SBorislav Petkovobj-$(CONFIG_SMP) += msr-smp.o cache-smp.o 18583d0e90SSam Ravnborg 191b1ded57SBorislav Petkovlib-y := delay.o misc.o cmdline.o 2081d68a96SSteven Rostedtlib-y += thunk_$(BITS).o 211ac2e6caSRobert Richterlib-y += usercopy_$(BITS).o usercopy.o getuser.o putuser.o 22583d0e90SSam Ravnborglib-y += memcpy_$(BITS).o 234625cd63SJan Beulichlib-$(CONFIG_SMP) += rwlock.o 24a7386694SJan Beulichlib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o 25ba7e4d13SIngo Molnarlib-$(CONFIG_INSTRUCTION_DECODER) += insn.o inat.o 26583d0e90SSam Ravnborg 2771ae8aacSFrancesco Fuscoobj-y += msr.o msr-reg.o msr-reg-export.o hash.o 2844f0257fSThomas Gleixner 2944f0257fSThomas Gleixnerifeq ($(CONFIG_X86_32),y) 301fde902dSIngo Molnar obj-y += atomic64_32.o 31a7e926abSLuca Barbieri lib-y += atomic64_cx8_32.o 32583d0e90SSam Ravnborg lib-y += checksum_32.o 33583d0e90SSam Ravnborg lib-y += strstr_32.o 344625cd63SJan Beulich lib-y += string_32.o 3504edbdefSEric Dumazetifneq ($(CONFIG_X86_CMPXCHG64),y) 36a7e926abSLuca Barbieri lib-y += cmpxchg8b_emu.o atomic64_386_32.o 3704edbdefSEric Dumazetendif 38583d0e90SSam Ravnborg lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o 3944f0257fSThomas Gleixnerelse 406175ddf0SBrian Gerst obj-y += iomap_copy_64.o 41583d0e90SSam Ravnborg lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o 42583d0e90SSam Ravnborg lib-y += thunk_64.o clear_page_64.o copy_page_64.o 43583d0e90SSam Ravnborg lib-y += memmove_64.o memset_64.o 444625cd63SJan Beulich lib-y += copy_user_64.o copy_user_nocache_64.o 45b9ec40afSChristoph Lameter lib-y += cmpxchg16b_emu.o 4644f0257fSThomas Gleixnerendif 47