xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision 15c2d45d)
114cf11afSPaul Mackerras#
214cf11afSPaul Mackerras# Makefile for ppc-specific library files..
314cf11afSPaul Mackerras#
414cf11afSPaul Mackerras
5ba55bd74SMichael Ellermansubdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6ba55bd74SMichael Ellerman
71fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64)	:= $(NO_MINIMAL_TOC)
88555a002SAnton Blanchard
9f1eecf0eSSteven RostedtCFLAGS_REMOVE_code-patching.o = -pg
10f1eecf0eSSteven RostedtCFLAGS_REMOVE_feature-fixups.o = -pg
11f1eecf0eSSteven Rostedt
122578bfaeSStephen Rothwellobj-y			:= string.o alloc.o \
137b20a955SAnton Blanchard			   crtsavres.o ppc_ksyms.o
147fca5dc8SStephen Rothwellobj-$(CONFIG_PPC32)	+= div64.o copy_32.o
1540ef8cbcSPaul Mackerras
162578bfaeSStephen Rothwellobj-$(CONFIG_PPC64)	+= copypage_64.o copyuser_64.o \
17803d57deSAndreas Ruprecht			   usercopy_64.o mem_64.o hweight_64.o \
1815c2d45dSAnton Blanchard			   copyuser_power7.o string_64.o copypage_power7.o \
1915c2d45dSAnton Blanchard			   memcmp_64.o
207a332b0cSAnton Blanchardifeq ($(CONFIG_GENERIC_CSUM),)
217a332b0cSAnton Blanchardobj-y			+= checksum_$(CONFIG_WORD_SIZE).o
227a332b0cSAnton Blanchardobj-$(CONFIG_PPC64)	+= checksum_wrappers_64.o
237a332b0cSAnton Blanchardendif
247a332b0cSAnton Blanchard
25de577a35SAnton Blanchardobj-$(CONFIG_PPC64)		+= memcpy_power7.o memcpy_64.o
26de577a35SAnton Blanchard
275e249d45SSuzuki K. Pouloseobj-$(CONFIG_PPC_EMULATE_SSTEP)	+= sstep.o ldstfp.o
28f78541dcSPaul Mackerras
29ecc81e0fSStephen Rothwellifeq ($(CONFIG_PPC64),y)
30ecc81e0fSStephen Rothwellobj-$(CONFIG_SMP)	+= locks.o
316f7839e5SAnton Blanchardobj-$(CONFIG_ALTIVEC)	+= vmx-helper.o
32ecc81e0fSStephen Rothwellendif
33b0c110b4SVitaly Bordug
341088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
35aaddd3eaSMichael Ellerman
36aaddd3eaSMichael Ellermanobj-y			+= code-patching.o
3751c52e86SMichael Ellermanobj-y			+= feature-fixups.o
38362e7701SMichael Ellermanobj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
39ef1313deSAnton Blanchard
40ef1313deSAnton Blanchardobj-$(CONFIG_ALTIVEC)	+= xor_vmx.o
41ef1313deSAnton BlanchardCFLAGS_xor_vmx.o += -maltivec -mabi=altivec
42