xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision 1dcee55f)
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
12564ec2f2SMichael Ellermanobj-y += string.o alloc.o crtsavres.o ppc_ksyms.o code-patching.o \
13564ec2f2SMichael Ellerman	 feature-fixups.o
14564ec2f2SMichael Ellerman
157fca5dc8SStephen Rothwellobj-$(CONFIG_PPC32)	+= div64.o copy_32.o
1640ef8cbcSPaul Mackerras
171dcee55fSMichael Ellermanobj64-y	+= copypage_64.o copyuser_64.o usercopy_64.o mem_64.o hweight_64.o \
181dcee55fSMichael Ellerman	   copyuser_power7.o string_64.o copypage_power7.o memcpy_power7.o \
191dcee55fSMichael Ellerman	   memcpy_64.o memcmp_64.o
201dcee55fSMichael Ellerman
211dcee55fSMichael Ellermanobj64-$(CONFIG_SMP)	+= locks.o
221dcee55fSMichael Ellermanobj64-$(CONFIG_ALTIVEC)	+= vmx-helper.o
231dcee55fSMichael Ellerman
247a332b0cSAnton Blanchardifeq ($(CONFIG_GENERIC_CSUM),)
257a332b0cSAnton Blanchardobj-y			+= checksum_$(CONFIG_WORD_SIZE).o
267a332b0cSAnton Blanchardobj-$(CONFIG_PPC64)	+= checksum_wrappers_64.o
277a332b0cSAnton Blanchardendif
287a332b0cSAnton Blanchard
295e249d45SSuzuki K. Pouloseobj-$(CONFIG_PPC_EMULATE_SSTEP)	+= sstep.o ldstfp.o
30f78541dcSPaul Mackerras
311088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
32aaddd3eaSMichael Ellerman
33362e7701SMichael Ellermanobj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
34ef1313deSAnton Blanchard
35ef1313deSAnton Blanchardobj-$(CONFIG_ALTIVEC)	+= xor_vmx.o
36ef1313deSAnton BlanchardCFLAGS_xor_vmx.o += -maltivec -mabi=altivec
371dcee55fSMichael Ellerman
381dcee55fSMichael Ellermanobj-$(CONFIG_PPC64) += $(obj64-y)
39