blob: 1530afb07c85443aac9c6e1949efd4d58e8fb51a [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
Borislav Petkov1b1ded52014-05-19 20:59:16 +020019lib-y := delay.o misc.o cmdline.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 Beulicha73866942011-07-19 13:00:19 +010023lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
Ingo Molnarba7e4d12009-06-06 13:58:12 +020024lib-$(CONFIG_INSTRUCTION_DECODER) += insn.o inat.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010025
Daniel Borkmann0cb6c962014-12-10 16:33:12 +010026obj-y += msr.o msr-reg.o msr-reg-export.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020028ifeq ($(CONFIG_X86_32),y)
Ingo Molnar1fde9022009-07-03 17:28:57 +020029 obj-y += atomic64_32.o
Luca Barbieria7e926a2010-02-24 10:54:25 +010030 lib-y += atomic64_cx8_32.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010031 lib-y += checksum_32.o
32 lib-y += strstr_32.o
Jan Beulich4625cd62011-07-19 12:59:51 +010033 lib-y += string_32.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
Oleg Nesterov212be3b2014-09-21 20:42:32 +020041 lib-y += clear_page_64.o copy_page_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010042 lib-y += memmove_64.o memset_64.o
Jan Beulich4625cd62011-07-19 12:59:51 +010043 lib-y += copy_user_64.o copy_user_nocache_64.o
Christoph Lameterb9ec40a2011-02-28 11:02:24 +010044 lib-y += cmpxchg16b_emu.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020045endif