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 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 23ba7e4d13SIngo Molnarlib-$(CONFIG_INSTRUCTION_DECODER) += insn.o inat.o 24583d0e90SSam Ravnborg 256ede31e0SBorislav Petkovobj-y += msr.o msr-reg.o msr-reg-export.o 2644f0257fSThomas Gleixner 2744f0257fSThomas Gleixnerifeq ($(CONFIG_X86_32),y) 281fde902dSIngo Molnar obj-y += atomic64_32.o 29a7e926abSLuca Barbieri lib-y += atomic64_cx8_32.o 30583d0e90SSam Ravnborg lib-y += checksum_32.o 31583d0e90SSam Ravnborg lib-y += strstr_32.o 326fd92b63SAlexander van Heukelum lib-y += semaphore_32.o string_32.o 3390c8f92fSH. Peter Anvin lib-y += cmpxchg.o 3404edbdefSEric Dumazetifneq ($(CONFIG_X86_CMPXCHG64),y) 35a7e926abSLuca Barbieri lib-y += cmpxchg8b_emu.o atomic64_386_32.o 3604edbdefSEric Dumazetendif 37583d0e90SSam Ravnborg lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o 3844f0257fSThomas Gleixnerelse 396175ddf0SBrian Gerst obj-y += iomap_copy_64.o 40583d0e90SSam Ravnborg lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o 41583d0e90SSam Ravnborg lib-y += thunk_64.o clear_page_64.o copy_page_64.o 42583d0e90SSam Ravnborg lib-y += memmove_64.o memset_64.o 43583d0e90SSam Ravnborg lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o 44bafaecd1SLinus Torvalds lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem_64.o 4544f0257fSThomas Gleixnerendif 46