blob: e10cf070ede0bbb6b169dbd76289054c32becc18 [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
Glauber Costa5cbbc3b2008-06-24 17:40:14 -030021lib-y += usercopy_$(BITS).o getuser.o putuser.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010022lib-y += memcpy_$(BITS).o
Ingo Molnarba7e4d12009-06-06 13:58:12 +020023lib-$(CONFIG_INSTRUCTION_DECODER) += insn.o inat.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010024
Borislav Petkov6ede31e2009-12-17 00:16:25 +010025obj-y += msr.o msr-reg.o msr-reg-export.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020027ifeq ($(CONFIG_X86_32),y)
Ingo Molnar1fde9022009-07-03 17:28:57 +020028 obj-y += atomic64_32.o
Luca Barbieria7e926a2010-02-24 10:54:25 +010029 lib-y += atomic64_cx8_32.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010030 lib-y += checksum_32.o
31 lib-y += strstr_32.o
Alexander van Heukelum6fd92b62008-03-09 21:01:04 +010032 lib-y += semaphore_32.o string_32.o
H. Peter Anvin90c8f922010-07-28 16:53:49 -070033 lib-y += cmpxchg.o
Eric Dumazet04edbde2009-10-01 07:30:38 +020034ifneq ($(CONFIG_X86_CMPXCHG64),y)
Luca Barbieria7e926a2010-02-24 10:54:25 +010035 lib-y += cmpxchg8b_emu.o atomic64_386_32.o
Eric Dumazet04edbde2009-10-01 07:30:38 +020036endif
Sam Ravnborg583d0e92008-01-30 13:32:31 +010037 lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020038else
Brian Gerst6175ddf2010-02-05 09:37:07 -050039 obj-y += iomap_copy_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010040 lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
41 lib-y += thunk_64.o clear_page_64.o copy_page_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010042 lib-y += memmove_64.o memset_64.o
43 lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o
Linus Torvaldsbafaecd2010-01-12 18:16:42 -080044 lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem_64.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020045endif