blob: 96b2c6697c9d9b5813bc82f01745ea2838b25aa1 [file] [log] [blame]
Sam Ravnborg583d0e92008-01-30 13:32:31 +01001#
2# Makefile for x86 specific library files.
3#
4
Masami Hiramatsueb132962009-08-13 16:34:13 -04005inat_tables_script = $(srctree)/arch/x86/tools/gen-insn-attr-x86.awk
6inat_tables_maps = $(srctree)/arch/x86/lib/x86-opcode-map.txt
7quiet_cmd_inat_tables = GEN $@
Masami Hiramatsud32ba452009-12-07 12:00:33 -05008 cmd_inat_tables = $(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@
Masami Hiramatsueb132962009-08-13 16:34:13 -04009
10$(obj)/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
11 $(call cmd,inat_tables)
12
13$(obj)/inat.o: $(obj)/inat-tables.c
14
15clean-files := inat-tables.c
16
Borislav Petkova7b480e2010-01-22 16:01:03 +010017obj-$(CONFIG_SMP) += msr-smp.o cache-smp.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010018
Glauber Costaf0fbf0a2008-07-03 12:35:41 -030019lib-y := delay.o
Steven Rostedt81d68a92008-05-12 21:20:42 +020020lib-y += thunk_$(BITS).o
Robert Richter1ac2e6c2011-06-07 11:49:55 +020021lib-y += usercopy_$(BITS).o usercopy.o getuser.o putuser.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010022lib-y += memcpy_$(BITS).o
Jan Beulich4625cd62011-07-19 12:59:51 +010023lib-$(CONFIG_SMP) += rwlock.o
Jan Beulicha73866942011-07-19 13:00:19 +010024lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
Ingo Molnarba7e4d12009-06-06 13:58:12 +020025lib-$(CONFIG_INSTRUCTION_DECODER) += insn.o inat.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010026
Borislav Petkov6ede31e2009-12-17 00:16:25 +010027obj-y += msr.o msr-reg.o msr-reg-export.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020029ifeq ($(CONFIG_X86_32),y)
Ingo Molnar1fde9022009-07-03 17:28:57 +020030 obj-y += atomic64_32.o
Luca Barbieria7e926a2010-02-24 10:54:25 +010031 lib-y += atomic64_cx8_32.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010032 lib-y += checksum_32.o
33 lib-y += strstr_32.o
Jan Beulich4625cd62011-07-19 12:59:51 +010034 lib-y += string_32.o
Eric Dumazet04edbde2009-10-01 07:30:38 +020035ifneq ($(CONFIG_X86_CMPXCHG64),y)
Luca Barbieria7e926a2010-02-24 10:54:25 +010036 lib-y += cmpxchg8b_emu.o atomic64_386_32.o
Eric Dumazet04edbde2009-10-01 07:30:38 +020037endif
Sam Ravnborg583d0e92008-01-30 13:32:31 +010038 lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020039else
Brian Gerst6175ddf2010-02-05 09:37:07 -050040 obj-y += iomap_copy_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010041 lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
42 lib-y += thunk_64.o clear_page_64.o copy_page_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010043 lib-y += memmove_64.o memset_64.o
Jan Beulich4625cd62011-07-19 12:59:51 +010044 lib-y += copy_user_64.o copy_user_nocache_64.o
Christoph Lameterb9ec40a2011-02-28 11:02:24 +010045 lib-y += cmpxchg16b_emu.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020046endif