xref: /openbmc/linux/arch/x86/lib/Makefile (revision 81d68a96)
1583d0e90SSam Ravnborg#
2583d0e90SSam Ravnborg# Makefile for x86 specific library files.
3583d0e90SSam Ravnborg#
4583d0e90SSam Ravnborg
5583d0e90SSam Ravnborgobj-$(CONFIG_SMP) := msr-on-cpu.o
6583d0e90SSam Ravnborg
7583d0e90SSam Ravnborglib-y := delay_$(BITS).o
881d68a96SSteven Rostedtlib-y += thunk_$(BITS).o
9583d0e90SSam Ravnborglib-y += usercopy_$(BITS).o getuser_$(BITS).o putuser_$(BITS).o
10583d0e90SSam Ravnborglib-y += memcpy_$(BITS).o
11583d0e90SSam Ravnborg
1244f0257fSThomas Gleixnerifeq ($(CONFIG_X86_32),y)
13583d0e90SSam Ravnborg        lib-y += checksum_32.o
14583d0e90SSam Ravnborg        lib-y += strstr_32.o
156fd92b63SAlexander van Heukelum        lib-y += semaphore_32.o string_32.o
16583d0e90SSam Ravnborg
17583d0e90SSam Ravnborg        lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
1844f0257fSThomas Gleixnerelse
19583d0e90SSam Ravnborg        obj-y += io_64.o iomap_copy_64.o
20583d0e90SSam Ravnborg
21583d0e90SSam Ravnborg        CFLAGS_csum-partial_64.o := -funroll-loops
22583d0e90SSam Ravnborg
23583d0e90SSam Ravnborg        lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
24583d0e90SSam Ravnborg        lib-y += thunk_64.o clear_page_64.o copy_page_64.o
25583d0e90SSam Ravnborg        lib-y += memmove_64.o memset_64.o
26583d0e90SSam Ravnborg        lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o
2744f0257fSThomas Gleixnerendif
28