blob: 419386c24b8205c3a22c993b3da48f448bf96283 [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
OGAWA Hirofumicbe5c342009-12-06 20:14:29 +090023lib-$(CONFIG_KPROBES) += 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
Sam Ravnborg583d0e92008-01-30 13:32:31 +010029 lib-y += checksum_32.o
30 lib-y += strstr_32.o
Alexander van Heukelum6fd92b62008-03-09 21:01:04 +010031 lib-y += semaphore_32.o string_32.o
Eric Dumazet04edbde2009-10-01 07:30:38 +020032ifneq ($(CONFIG_X86_CMPXCHG64),y)
33 lib-y += cmpxchg8b_emu.o
34endif
Sam Ravnborg583d0e92008-01-30 13:32:31 +010035 lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020036else
Brian Gerst6175ddf2010-02-05 09:37:07 -050037 obj-y += iomap_copy_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010038 lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
39 lib-y += thunk_64.o clear_page_64.o copy_page_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010040 lib-y += memmove_64.o memset_64.o
41 lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o
Linus Torvaldsbafaecd2010-01-12 18:16:42 -080042 lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem_64.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020043endif